Skip to content

Commit

Permalink
Merge pull request #433 from alphagov/more-travis-amends
Browse files Browse the repository at this point in the history
Make create-release.sh consistent with FET
  • Loading branch information
gemmaleigh authored Mar 23, 2017
2 parents 8262e18 + 0b006d8 commit b2d5c0f
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions create-release.sh
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"

Expand All @@ -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"
Expand Down

0 comments on commit b2d5c0f

Please sign in to comment.