-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #433 from alphagov/more-travis-amends
Make create-release.sh consistent with FET
- Loading branch information
Showing
1 changed file
with
7 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,17 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
echo "Add config for alphagov/govuk_elements" | ||
REPO_PATH='alphagov/govuk_elements' | ||
|
||
echo "Add config for alphagov/$REPO_PATH" | ||
|
||
git config --global user.name "Travis CI" | ||
git config --global user.email "[email protected]" | ||
git remote add origin_ssh [email protected]:alphagov/govuk_elements.git | ||
git remote add origin_ssh [email protected]:$REPO_PATH.git | ||
|
||
# This openssl command was generated automatically by `travis encrypt-file`, see `.travis/README.md` for more details | ||
openssl aes-256-cbc -K $encrypted_85ebe8034b89_key -iv $encrypted_85ebe8034b89_iv -in .travis/govuk_elements.enc -out ~/.ssh/id_rsa -d && chmod 600 ~/.ssh/id_rsa | ||
openssl aes-256-cbc -K $encrypted_85ebe8034b89_key -iv $encrypted_85ebe8034b89_iv -in .travis/govuk_elements.enc -out ~/.ssh/id_rsa -d | ||
chmod 600 ~/.ssh/id_rsa | ||
|
||
echo "Check to see if the version file has been updated" | ||
|
||
|
@@ -28,6 +31,7 @@ if ! git rev-parse $VERSION_TAG >/dev/null 2>&1; then | |
|
||
# This tag will trigger the builds for the deploy providers marked "# For tagged commits" in .travis.yml | ||
|
||
# Alias branch for the most recently released tag, for easier diffing | ||
# Force push local `master` branch to the `latest-release` branch on Github | ||
git push --force origin_ssh master:latest-release | ||
echo "Pushed latest-release branch to GitHub" | ||
|