mirror of
https://github.com/ThePhaseless/Byparr.git
synced 2025-03-15 09:50:20 +08:00
push all tags into one
This commit is contained in:
parent
8b4ec8e178
commit
a93bf725ef
18
.github/workflows/docker-publish.yml
vendored
18
.github/workflows/docker-publish.yml
vendored
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user