Skip to content

Commit

Permalink
Config CI deploy script to do ZDT deploys
Browse files Browse the repository at this point in the history
This commit wires up CI such that it does ZDT pushes which will cause it to deploy without incurring downtime
  • Loading branch information
jmhooper committed Sep 25, 2019
1 parent da3f5cf commit 449e78a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@ jobs:
- run:
name: deploy site
command: |
if [ "${CIRCLE_BRANCH}" == "master" ]; then
if [ "${CIRCLE_BRANCH}" == "jmhooper-zdt-push" ]; then
bin/deploy-ci.sh
fi
4 changes: 2 additions & 2 deletions bin/deploy-ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
set -e

# Install CF
curl https://s3-us-west-1.amazonaws.com/cf-cli-releases/releases/v6.25.0/cf-cli_6.25.0_linux_x86-64.tgz | tar xzvf -
curl https://s3-us-west-1.amazonaws.com/cf-cli-releases/releases/v6.46.1/cf-cli_6.46.1_linux_x86-64.tgz | tar xzvf -
sudo mv cf /usr/local/bin/cf

# Log into cloud.gov
cf api api.fr.cloud.gov
cf login -u $CF_USERNAME -p $CF_PASSWORD -o gsa-opp-analytics -s analytics-dev

# Push the app
cf push analytics-reporter
cf v3-zdt-push analytics-reporter

cf logout

0 comments on commit 449e78a

Please sign in to comment.