Skip to content
This repository has been archived by the owner on Aug 19, 2024. It is now read-only.

Commit

Permalink
Create copied manifest rather than retagging (heroku#252)
Browse files Browse the repository at this point in the history
  • Loading branch information
joshwlewis authored Mar 4, 2024
1 parent ef0452b commit 80cb879
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions bin/publish-to-registries.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,19 @@ push_group() {
local sourceTagSuffix="$2"
local targetTagSuffix="$3"
variants=("" "-build")
if (( STACK_VERSION <= 22 )); then
if (( STACK_VERSION < 24 )); then
variants+=("-cnb" "-cnb-build")
fi
for variant in "${variants[@]}"; do
source="${tagBase}${variant}${sourceTagSuffix}"
target="${tagBase}${variant}${targetTagSuffix}"
docker tag "${source}" "${target}"
if (( STACK_VERSION < 24 )); then
# Re-tag amd64-only images
docker tag "${source}" "${target}"
else
# Make a carbon copy image index for multi-arch images
docker buildx imagetools create -t "${target}" "${source}"
fi
docker push "${target}"
done
}
Expand Down

0 comments on commit 80cb879

Please sign in to comment.