mirror of
https://github.com/ThePhaseless/Byparr.git
synced 2025-03-15 01:40:21 +08:00
push all tags into one
This commit is contained in:
parent
8b4ec8e178
commit
a93bf725ef
24
.github/workflows/docker-publish.yml
vendored
24
.github/workflows/docker-publish.yml
vendored
@ -204,23 +204,23 @@ jobs:
|
||||
- name: Create and push manifest lists
|
||||
run: |
|
||||
TAGS="${{ steps.meta.outputs.tags }}"
|
||||
for TAG in $TAGS; do
|
||||
# Tag the local images with their registry counterparts
|
||||
docker tag local-${{ github.sha }}-amd64 local-amd64
|
||||
docker tag local-${{ github.sha }}-arm64 local-arm64
|
||||
args=""
|
||||
|
||||
# Push individual images
|
||||
docker buildx imagetools create -t $TAG \
|
||||
local-amd64 \
|
||||
local-arm64
|
||||
docker tag local-${{ github.sha }}-amd64 local-amd64
|
||||
docker tag local-${{ github.sha }}-arm64 local-arm64
|
||||
|
||||
for TAG in $TAGS; do
|
||||
# Create tag arguments
|
||||
for tag in $tags; do
|
||||
args="$args -t $tag"
|
||||
done
|
||||
|
||||
if [ "${{ github.ref_type }}" == "tag" ]; then
|
||||
docker buildx imagetools create -t latest \
|
||||
${{ steps.meta.outputs.tags }},
|
||||
local-amd64 \
|
||||
local-arm64
|
||||
args="$args -t latest"
|
||||
fi
|
||||
docker buildx imagetools create $args \
|
||||
local-amd64 \
|
||||
local-arm64
|
||||
|
||||
# Sign the manifest
|
||||
- name: Sign the manifests
|
||||
|
Loading…
x
Reference in New Issue
Block a user