push all tags into one

This commit is contained in:
ThePhaseless 2025-02-28 17:43:57 +01:00
parent 8b4ec8e178
commit a93bf725ef

View File

@ -204,23 +204,23 @@ jobs:
- name: Create and push manifest lists - name: Create and push manifest lists
run: | run: |
TAGS="${{ steps.meta.outputs.tags }}" TAGS="${{ steps.meta.outputs.tags }}"
for TAG in $TAGS; do args=""
# Tag the local images with their registry counterparts
docker tag local-${{ github.sha }}-amd64 local-amd64 docker tag local-${{ github.sha }}-amd64 local-amd64
docker tag local-${{ github.sha }}-arm64 local-arm64 docker tag local-${{ github.sha }}-arm64 local-arm64
# Push individual images for TAG in $TAGS; do
docker buildx imagetools create -t $TAG \ # Create tag arguments
local-amd64 \ for tag in $tags; do
local-arm64 args="$args -t $tag"
done done
if [ "${{ github.ref_type }}" == "tag" ]; then if [ "${{ github.ref_type }}" == "tag" ]; then
docker buildx imagetools create -t latest \ args="$args -t latest"
${{ steps.meta.outputs.tags }}, fi
docker buildx imagetools create $args \
local-amd64 \ local-amd64 \
local-arm64 local-arm64
fi
# Sign the manifest # Sign the manifest
- name: Sign the manifests - name: Sign the manifests