This repository was archived by the owner on Mar 5, 2025. It is now read-only.
Commit 9f7475a 1 parent ad6c8e5 commit 9f7475a Copy full SHA for 9f7475a
File tree 3 files changed +18
-13
lines changed
3 files changed +18
-13
lines changed Original file line number Diff line number Diff line change @@ -54,6 +54,21 @@ script:
54
54
- blt deploy:build
55
55
- source ${BLT_DIR}/scripts/blt/ci/internal/test_artifact.sh
56
56
57
+ before_deploy :
58
+ - cd ${TRAVIS_BUILD_DIR}/../blt-project
59
+ # The BLTed8 project will need its ssh_known_hosts configured to push to ACF.
60
+ - yaml-cli update:value .travis.yml addons.ssh_known_hosts.0 svn-5223.devcloud.hosting.acquia.com
61
+ # Add encrypted SSH key to BLTed8 project.
62
+ - yaml-cli update:value .travis.yml before_deploy.0 'openssl aes-256-cbc -K $encrypted_065fa5839cf8_key -iv $encrypted_065fa5839cf8_iv -in id_rsa_blted8.enc -out ~/.ssh/id_rsa -d; chmod 600 ~/.ssh/id_rsa; eval "$(ssh-agent -s)"; ssh-add ~/.ssh/id_rsa;'
63
+ - cp ${TRAVIS_BUILD_DIR}/id_rsa_blted8.enc .
64
+ # Remove the symlink definition for BLT from composer.json and require this specific commit for BLT.
65
+ - composer config --unset repositories.blt
66
+ - composer require acquia/blt:8.x-dev#${TRAVIS_COMMIT}
67
+ - composer update --lock
68
+ - echo "[](https://travis-ci.org/acquia-pso/blted8)" >> README.md
69
+ - git add -A
70
+ - git commit -m "Automated commit for BLT repo by Travis CI for Build ${TRAVIS_BUILD_ID}" -n
71
+
57
72
deploy :
58
73
- provider : script
59
74
# Deploys build artifact for generated `blt-project` to acquia-pso/blted8 on GitHub and also to bolt8 sub on ACF.
Original file line number Diff line number Diff line change 4
4
5
5
cd ${TRAVIS_BUILD_DIR} /../blt-project
6
6
7
- # git.remotes already defined in create_blt_project.sh.
8
- yaml-cli update:value .travis.yml addons.ssh_known_hosts.0 svn-5223.devcloud.hosting.acquia.com
9
- yaml-cli update:value .travis.yml before_deploy.0 ' openssl aes-256-cbc -K $encrypted_065fa5839cf8_key -iv $encrypted_065fa5839cf8_iv -in id_rsa_blted8.enc -out ~/.ssh/id_rsa -d; chmod 600 ~/.ssh/id_rsa; eval "$(ssh-agent -s)"; ssh-add ~/.ssh/id_rsa;'
10
- cp ${TRAVIS_BUILD_DIR} /id_rsa_blted8.enc .
11
-
12
- # Remove the symlink definition for BLT from composer.json.
13
- composer config --unset repo.blt
14
- composer require acquia/blt:8.x-dev#${TRAVIS_COMMIT}
15
- composer update --lock
16
7
git remote add github
[email protected] :acquia-pso/blted8.git
17
- echo " [](https://travis-ci.org/acquia-pso/blted8)" >> README.md
18
-
19
- git add -A
20
- git commit -m " Automated commit for BLT repo by Travis CI for Build ${TRAVIS_BUILD_ID} " -n
21
8
git checkout -b ${TRAVIS_BRANCH}
22
9
git push github ${TRAVIS_BRANCH} -f
23
10
Original file line number Diff line number Diff line change 2
2
3
3
set -ev
4
4
5
+ cd ${TRAVIS_BUILD_DIR} /../blt-project
6
+
7
+
5
8
blt deploy -Ddeploy.commitMsg=" Automated commit by Travis CI for Build ${TRAVIS_BUILD_ID} " -Ddeploy.branch=" ${TRAVIS_BRANCH} -build"
6
9
7
10
set +v
You can’t perform that action at this time.
0 commit comments