Skip to content

Commit

Permalink
Adding conditional for security compliance branch
Browse files Browse the repository at this point in the history
  • Loading branch information
xxlhacker committed May 10, 2023
1 parent c1576c2 commit 3f486cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build_deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ podman build -f Dockerfile -t "${IMAGE}:${IMAGE_TAG}" .
podman push "${IMAGE}:${IMAGE_TAG}"

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}"
podman tag "${IMAGE}:${IMAGE_TAG}" "${IMAGE}:${SECURITY_COMPLIANCE_TAG}"
podman push "${IMAGE}:${SECURITY_COMPLIANCE_TAG}"
else
podman tag "${IMAGE}:${IMAGE_TAG}" "${IMAGE}:latest"
podman push "${IMAGE}:latest"
Expand Down

0 comments on commit 3f486cb

Please sign in to comment.