From 16865405940f3517edda213e36dea979ee649f81 Mon Sep 17 00:00:00 2001 From: CrazyMax Date: Tue, 11 Jul 2023 19:57:53 +0200 Subject: [PATCH] ci(bin-image): don't set tags when pushing by digest Signed-off-by: CrazyMax --- .github/workflows/bin-image.yml | 30 +++++++++++++----------------- 1 file changed, 13 insertions(+), 17 deletions(-) diff --git a/.github/workflows/bin-image.yml b/.github/workflows/bin-image.yml index cc1530a9aa..ac3891ede8 100644 --- a/.github/workflows/bin-image.yml +++ b/.github/workflows/bin-image.yml @@ -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