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={{version}}
|
||||||
type=semver,pattern={{major}}.{{minor}}
|
type=semver,pattern={{major}}.{{minor}}
|
||||||
type=semver,pattern={{major}}
|
type=semver,pattern={{major}}
|
||||||
type=raw,enable=${{ github.ref_type == 'tag' }}, value=latest
|
|
||||||
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
|
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
|
||||||
|
|
||||||
# Download all image artifacts
|
# Download all image artifacts
|
||||||
@ -207,19 +206,22 @@ jobs:
|
|||||||
TAGS="${{ steps.meta.outputs.tags }}"
|
TAGS="${{ steps.meta.outputs.tags }}"
|
||||||
for TAG in $TAGS; do
|
for TAG in $TAGS; do
|
||||||
# Tag the local images with their registry counterparts
|
# Tag the local images with their registry counterparts
|
||||||
docker tag local-${{ github.sha }}-amd64 $TAG-amd64
|
docker tag local-${{ github.sha }}-amd64 local-amd64
|
||||||
docker tag local-${{ github.sha }}-arm64 $TAG-arm64
|
docker tag local-${{ github.sha }}-arm64 local-arm64
|
||||||
|
|
||||||
# Push individual platform images
|
# Push individual images
|
||||||
# docker push $TAG-amd64
|
|
||||||
# docker push $TAG-arm64
|
|
||||||
|
|
||||||
# Create manifest list and push it
|
|
||||||
docker buildx imagetools create -t $TAG \
|
docker buildx imagetools create -t $TAG \
|
||||||
$TAG-amd64 \
|
local-amd64 \
|
||||||
$TAG-arm64
|
local-arm64
|
||||||
done
|
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
|
# Sign the manifest
|
||||||
- name: Sign the manifests
|
- name: Sign the manifests
|
||||||
env:
|
env:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user