Skip to content

Commit

Permalink
fix(ci): update build_deploy to correctly generate sc tagged images
Browse files Browse the repository at this point in the history
  • Loading branch information
casey-williams-rh authored and petrblaho committed Oct 10, 2024
1 parent 1c10efe commit a8e2b74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build_deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export CICD_IMAGE_BUILDER_IMAGE_NAME='quay.io/cloudservices/compliance-backend'
if [[ "$GIT_BRANCH" == "origin/security-compliance" ]]; then
# Generate a tag for the container image based on the current date and Git commit short hash.
SECURITY_COMPLIANCE_TAG="sc-$(date +%Y%m%d)-$(git rev-parse --short=7 HEAD)"
export CICD_IMAGE_BUILDER_BUILD_ARGS=("IMAGE_TAG=$SECURITY_COMPLIANCE_TAG")
export "IMAGE_TAG=${SECURITY_COMPLIANCE_TAG}"
else
# If the current Git branch is not 'origin/security-compliance':
export CICD_IMAGE_BUILDER_BUILD_ARGS=("IMAGE_TAG=$(cicd::image_builder::get_image_tag)")
Expand Down

0 comments on commit a8e2b74

Please sign in to comment.