ci(bin-image): don't set tags when pushing by digest

Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
(cherry picked from commit 1686540594)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
CrazyMax 2023-07-11 19:57:53 +02:00 committed by Sebastiaan van Stijn
parent fcb87e8ae1
commit e7c333cb6e
No known key found for this signature in database
GPG key ID: 76698F39D527CE8C

View file

@ -75,23 +75,6 @@ jobs:
type=semver,pattern={{version}}
type=ref,event=branch
type=ref,event=pr
-
name: Rename meta bake definition file
run: |
mv "${{ steps.meta.outputs.bake-file }}" "/tmp/bake-meta.json"
-
name: Upload meta bake definition
uses: actions/upload-artifact@v3
with:
name: bake-meta
path: /tmp/bake-meta.json
if-no-files-found: error
retention-days: 1
-
name: Remove tags from meta bake definition
run: |
# we just want labels being set in this job
jq -r 'del(.target."docker-metadata-action".tags)' "/tmp/bake-meta.json" > "${{ steps.meta.outputs.bake-file }}"
-
name: Set up QEMU
uses: docker/setup-qemu-action@v2
@ -117,6 +100,7 @@ jobs:
set: |
*.platform=${{ matrix.platform }}
*.output=type=image,name=${{ env.MOBYBIN_REPO_SLUG }},push-by-digest=true,name-canonical=true,push=${{ github.event_name != 'pull_request' }}
*.tags=
-
name: Export digest
if: github.event_name != 'pull_request'
@ -133,6 +117,18 @@ jobs:
path: /tmp/digests/*
if-no-files-found: error
retention-days: 1
-
name: Rename meta bake definition file
run: |
mv "${{ steps.meta.outputs.bake-file }}" "/tmp/bake-meta.json"
-
name: Upload meta bake definition
uses: actions/upload-artifact@v3
with:
name: bake-meta
path: /tmp/bake-meta.json
if-no-files-found: error
retention-days: 1
merge:
runs-on: ubuntu-20.04