Skip to content

Commit

Permalink
Merge pull request #2 from Sage/fix-qa
Browse files Browse the repository at this point in the history
Fix DB image so that it gets pushed for the QA environment
  • Loading branch information
rwadstein committed Jul 29, 2022
2 parents d15c57f + aadd3c6 commit d4d5933
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
6 changes: 3 additions & 3 deletions hooks/post-command
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ 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

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
2 changes: 1 addition & 1 deletion hooks/pre-command
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export TARGET_TAG="${BUILDKITE_PLUGIN_SBC_SHARED_TARGET_TAG:-}"

set -u
export DOCKER_TAG="${BUILDKITE_PLUGIN_SBC_SHARED_TAG:-application}"
export HAS_DB_IMAGE="${BUILDKITE_PLUGIN_SBC_SHARED_HAS_DB_IMAGE:-false}"
export HAS_DB_IMAGE="${BUILDKITE_PLUGIN_SBC_SHARED_DB_IMAGE:-false}"

# copy scripts to be used by pipeline in order to be invoked within a docker container.
ACTION="$BUILDKITE_PLUGIN_SBC_SHARED_ACTION"
Expand Down
2 changes: 2 additions & 0 deletions plugin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ configuration:
type: string
gem_host:
type: string
db_image:
type: boolean
required:
- action
additionalProperties: false

0 comments on commit d4d5933

Please sign in to comment.