Merge pull request #45930 from crazy-max/fix-moby-bin

ci(bin-image): don't set tags when pushing by digest
This commit is contained in:
CrazyMax 2023-07-11 21:31:32 +02:00 committed by GitHub
commit 8b7ec57cb4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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