Skip to content

Commit

Permalink
user proper account env
Browse files Browse the repository at this point in the history
  • Loading branch information
rwadstein committed Jul 29, 2022
1 parent 25fb6c4 commit 6ce8a32
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hooks/post-command
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@ if [[ $ACTION == "push_image" ]];then
if [[ "$BK_BRANCH" == "$BUILDKITE_PIPELINE_DEFAULT_BRANCH" ]]; then
echo "$BUILDKITE_PIPELINE_DEFAULT_BRANCH test image "
BK_BRANCH="test-$BK_BRANCH"
push_image --account_id $AWS_ACCOUNT_ID --app $APP --tag test
push_image --account_id $ACCOUNT_ID --app $APP --tag test
fi

echo "$HAS_DB_IMAGE"
if [[ "$HAS_DB_IMAGE" == "true" ]]; then
echo "DB image"
BK_BRANCH="database-$INITIAL_BK_BRANCH"
push_image --account_id $AWS_ACCOUNT_ID --app $APP --tag database
push_image --account_id $ACCOUNT_ID --app $APP --tag database
fi
fi
elif [[ $ACTION == "push_param" ]];then
Expand Down

0 comments on commit 6ce8a32

Please sign in to comment.