From 9ee683e6234c7566d39a50c190e421260fb778aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Fri, 9 Aug 2024 11:42:29 +0200 Subject: [PATCH] Skip push unless tagged --- .github/workflows/image.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/image.yml b/.github/workflows/image.yml index 149921cf506..bcc78b3fd61 100644 --- a/.github/workflows/image.yml +++ b/.github/workflows/image.yml @@ -111,6 +111,7 @@ jobs: password: ${{ secrets.GITHUB_TOKEN }} - name: Create manifest list and push + if: ${{ startsWith(github.ref, 'refs/tags') }} working-directory: /tmp/digests run: | docker buildx imagetools create $(jq -cr '.tags | map("-t " + .) | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON") \