Skip to content

Commit

Permalink
Merge branch 'security-compliance' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
aleccohan authored Aug 29, 2023
2 parents a4aaa4c + 43ccced commit 991b4ab
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions build_deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ set -exv

IMAGE="quay.io/cloudservices/mbop"
IMAGE_TAG=$(git rev-parse --short=7 HEAD)
SECURITY_COMPLIANCE_TAG="sc-$(date +%Y%m%d)"

if [[ -z "$QUAY_USER" || -z "$QUAY_TOKEN" ]]; then
echo "QUAY_USER and QUAY_TOKEN must be set"
Expand All @@ -26,3 +27,8 @@ if [[ $GIT_BRANCH == *"master"* ]]; then
docker tag "${IMAGE}:${IMAGE_TAG}" "${IMAGE}:latest"
docker push "${IMAGE}:latest"
fi

if [[ $GIT_BRANCH == *"security-compliance"* ]]; then
docker --config="$DOCKER_CONF" tag "${IMAGE}:${IMAGE_TAG}" "${IMAGE}:${SECURITY_COMPLIANCE_TAG}"
docker --config="$DOCKER_CONF" push "${IMAGE}:${SECURITY_COMPLIANCE_TAG}"
fi

0 comments on commit 991b4ab

Please sign in to comment.