From b57b94c63a4028b7288219ea97c4445220ba4d68 Mon Sep 17 00:00:00 2001 From: dgtlmoon Date: Wed, 6 Oct 2021 11:28:20 +0200 Subject: [PATCH] Be more specific about tagged release builds --- .github/workflows/containers.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/containers.yml b/.github/workflows/containers.yml index 70f795cc..f6351d06 100644 --- a/.github/workflows/containers.yml +++ b/.github/workflows/containers.yml @@ -23,7 +23,7 @@ jobs: echo Ref ${{ github.ref }} echo c: ${{ github.event.workflow_run.conclusion }} echo r: ${{ github.event.workflow_run }} - echo tname: ${{ github.event.release.tag_name }} + echo tname: "${{ github.event.release.tag_name }}" set build-push-containers: @@ -97,7 +97,7 @@ jobs: # A new tagged release is required, which builds :tag - name: Build and push :tag id: docker_build_tag_release - if: ${{ github.event.release.tag_name }} != '' + if: github.event_name == 'release' && startsWith(github.event.release.tag_name, '0.') uses: docker/build-push-action@v2 with: context: ./ @@ -110,7 +110,6 @@ jobs: cache-from: type=local,src=/tmp/.buildx-cache cache-to: type=local,dest=/tmp/.buildx-cache - - name: Image digest run: echo step SHA ${{ steps.vars.outputs.sha_short }} tag ${{steps.vars.outputs.tag}} branch ${{steps.vars.outputs.branch}} digest ${{ steps.docker_build.outputs.digest }}