Skip to content

Commit

Permalink
Revert change to build-upload-a-docker-image.sh
Browse files Browse the repository at this point in the history
Signed-off-by: Albert Teoh <see.kwang.teoh@gmail.com>
  • Loading branch information
albertteoh committed Jul 13, 2022
1 parent d281c0a commit 685554f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/build-upload-a-docker-image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,13 @@ fi

docker_file_arg="${dir_arg}/${docker_file_arg}"

IMAGE_TAGS="--tag localhost:5000/${name_space}/${component_name}:latest"
IMAGE_TAGS=$(bash scripts/compute-tags.sh "${name_space}/${component_name}")
upload_flag=""

if [[ "${local_test_only}" = "Y" ]]; then
IMAGE_TAGS="--tag localhost:5000/${name_space}/${component_name}:latest"
PUSHTAG="type=image, push=true"
else
IMAGE_TAGS=$(bash scripts/compute-tags.sh "${name_space}/${component_name}")
# Only push multi-arch images to dockerhub/quay.io for main branch or for release tags vM.N.P
if [[ "$BRANCH" == "main" || $BRANCH =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
echo "build docker images and upload to dockerhub/quay.io, BRANCH=$BRANCH"
Expand Down

0 comments on commit 685554f

Please # to comment.