Skip to content

Commit 28785f5

Browse files
authored
RHINENG-14338 update build file to include pcp-zeroconf branch (#497)
1 parent 374ad8e commit 28785f5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

build_deploy.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ IMAGE_TAG=$(git rev-parse --short=7 HEAD)
77
ADDITIONAL_TAGS="qa latest"
88
SECURITY_COMPLIANCE_TAG="sc-$(date +%Y%m%d)-$(git rev-parse --short=7 HEAD)"
99
HOTFIX_CVE_TAG="hotfix-$(git rev-parse --short=7 HEAD)"
10+
PCP_ZEROCONF_TAG="pcp-zeroconf-$(git rev-parse --short=7 HEAD)"
1011

1112
if [[ -z "$QUAY_USER" || -z "$QUAY_TOKEN" ]]; then
1213
echo "QUAY_USER and QUAY_TOKEN must be set"
@@ -43,6 +44,10 @@ elif [[ $GIT_BRANCH == *"hotfix"* ]]; then
4344
docker --config="$DOCKER_CONF" push "${IMAGE_NAME}:${IMAGE_TAG}"
4445
docker --config="$DOCKER_CONF" tag "${IMAGE_NAME}:${IMAGE_TAG}" "${IMAGE_NAME}:${HOTFIX_CVE_TAG}"
4546
docker --config="$DOCKER_CONF" push "${IMAGE_NAME}:${HOTFIX_CVE_TAG}"
47+
elif [[ $GIT_BRANCH == *"pcp-zeroconf"* ]]; then
48+
docker --config="$DOCKER_CONF" push "${IMAGE_NAME}:${IMAGE_TAG}"
49+
docker --config="$DOCKER_CONF" tag "${IMAGE_NAME}:${IMAGE_TAG}" "${IMAGE_NAME}:${PCP_ZEROCONF_TAG}"
50+
docker --config="$DOCKER_CONF" push "${IMAGE_NAME}:${PCP_ZEROCONF_TAG}"
4651
else
4752
docker --config="$DOCKER_CONF" push "${IMAGE_NAME}:${IMAGE_TAG}"
4853
for ADDITIONAL_TAG in $ADDITIONAL_TAGS; do

0 commit comments

Comments
 (0)