Skip to content

Commit

Permalink
Update mirror.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
gdams authored Aug 14, 2024
1 parent 06c8e6b commit cd25f33
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/mirror.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,19 @@ jobs:
# Loop through each architecture
for arch in "${arch_array[@]}"; do
# Set platform for non-Windows architectures
platform="linux/$arch"
if [[ "$arch" == "windows-amd64" ]]; then
platform="windows/amd64"
fi
# Pull, tag, and push each architecture-specific image
docker pull --platform=$platform $src
docker tag $src $dest-$arch
docker push $dest-$arch
# Try pulling the image for the specific architecture
if docker pull --platform=$platform $src; then
docker tag $src $dest-$arch
docker push $dest-$arch
else
echo "Skipping $platform for $src - no matching manifest."
fi
done
# Create and push a multi-platform manifest
Expand Down

0 comments on commit cd25f33

Please sign in to comment.