Skip to content

Commit aae14da

Browse files
author
Matt Calhoun
committed
fix circle prod deployment
1 parent d930465 commit aae14da

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

.circleci/config.yml

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -58,16 +58,12 @@ references:
5858
name: deploy to prod
5959
command: |
6060
set +o pipefail
61-
if [[ "$CIRCLE_BRANCH" == "master" ]]; then
62-
export CREDENTIALS=`aws sts assume-role --role-arn arn:aws:iam::996502968539:role/allow-gruntwork-website-ci-cd-access-from-other-accounts --role-session-name CircleCI --duration-seconds 900 --output=json`
63-
export AWS_ACCESS_KEY_ID=`echo ${CREDENTIALS} | jq -r '.Credentials.AccessKeyId'`
64-
export AWS_SECRET_ACCESS_KEY=`echo ${CREDENTIALS} | jq -r '.Credentials.SecretAccessKey'`
65-
export AWS_SESSION_TOKEN=`echo ${CREDENTIALS} | jq -r '.Credentials.SessionToken'`
66-
export AWS_EXPIRATION=`echo ${CREDENTIALS} | jq -r '.Credentials.Expiration'`
67-
./push-to-s3-prod.sh
68-
else
69-
echo "not on master, skipping prod deploy"
70-
fi
61+
export CREDENTIALS=`aws sts assume-role --role-arn arn:aws:iam::996502968539:role/allow-gruntwork-website-ci-cd-access-from-other-accounts --role-session-name CircleCI --duration-seconds 900 --output=json`
62+
export AWS_ACCESS_KEY_ID=`echo ${CREDENTIALS} | jq -r '.Credentials.AccessKeyId'`
63+
export AWS_SECRET_ACCESS_KEY=`echo ${CREDENTIALS} | jq -r '.Credentials.SecretAccessKey'`
64+
export AWS_SESSION_TOKEN=`echo ${CREDENTIALS} | jq -r '.Credentials.SessionToken'`
65+
export AWS_EXPIRATION=`echo ${CREDENTIALS} | jq -r '.Credentials.Expiration'`
66+
./push-to-s3-prod.sh
7167
7268
notify_slack: &notify_slack_on_failure
7369
slack/status:

0 commit comments

Comments
 (0)