Skip to content

Commit

Permalink
CNJR-5954: Fix promotion not pushing version without id
Browse files Browse the repository at this point in the history
  • Loading branch information
szh committed Sep 12, 2024
1 parent 783fb8d commit 7d97fcd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions publish-images.sh
Original file line number Diff line number Diff line change
Expand Up @@ -132,15 +132,15 @@ if [[ "${PROMOTE}" = true ]]; then
readarray -t prefix_versions < <(gen_versions "${VERSION}")

for version in latest "${prefix_versions[@]}"; do
echo "Pushing images for tag: $version"
echo "Pushing images for tag: $version-${ARCH}"

tag_and_push "${version}-${ARCH}" "registry.tld/${IMAGE_NAME}:${LOCAL_TAG}-${ARCH}" "registry.tld/${IMAGE_NAME}"
tag_and_push "${version}-${ARCH}" "registry.tld/conjur-ubi:${LOCAL_TAG}-${ARCH}" "registry.tld/conjur-ubi"

if [[ "${DOCKERHUB}" ]]; then
echo "Pushing to DockerHub"

tag_and_push "${version}" "${LOCAL_IMAGE}" "${IMAGE_NAME}"
tag_and_push "${version}-${ARCH}" "${LOCAL_IMAGE}-${ARCH}" "${IMAGE_NAME}"
fi
done
fi
Expand Down

0 comments on commit 7d97fcd

Please sign in to comment.