mirror of
https://github.com/ThePhaseless/Byparr.git
synced 2025-03-15 09:50:20 +08:00
tweak labels
This commit is contained in:
parent
893fd84ff6
commit
56ac51105c
22
.github/workflows/docker-publish.yml
vendored
22
.github/workflows/docker-publish.yml
vendored
@ -179,7 +179,6 @@ jobs:
|
||||
type=semver,pattern={{version}}
|
||||
type=semver,pattern={{major}}.{{minor}}
|
||||
type=semver,pattern={{major}}
|
||||
type=raw,enable=${{ github.ref_type == 'tag' }}, value=latest
|
||||
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
|
||||
|
||||
# Download all image artifacts
|
||||
@ -207,19 +206,22 @@ jobs:
|
||||
TAGS="${{ steps.meta.outputs.tags }}"
|
||||
for TAG in $TAGS; do
|
||||
# Tag the local images with their registry counterparts
|
||||
docker tag local-${{ github.sha }}-amd64 $TAG-amd64
|
||||
docker tag local-${{ github.sha }}-arm64 $TAG-arm64
|
||||
docker tag local-${{ github.sha }}-amd64 local-amd64
|
||||
docker tag local-${{ github.sha }}-arm64 local-arm64
|
||||
|
||||
# Push individual platform images
|
||||
# docker push $TAG-amd64
|
||||
# docker push $TAG-arm64
|
||||
|
||||
# Create manifest list and push it
|
||||
# Push individual images
|
||||
docker buildx imagetools create -t $TAG \
|
||||
$TAG-amd64 \
|
||||
$TAG-arm64
|
||||
local-amd64 \
|
||||
local-arm64
|
||||
done
|
||||
|
||||
if [ "${{ github.ref_type }}" == "tag" ]; then
|
||||
docker buildx imagetools create -t latest \
|
||||
${{ steps.meta.outputs.tags }},
|
||||
local-amd64 \
|
||||
local-arm64
|
||||
fi
|
||||
|
||||
# Sign the manifest
|
||||
- name: Sign the manifests
|
||||
env:
|
||||
|
Loading…
x
Reference in New Issue
Block a user