From 5f2325d97dfd7bc527b171feaeeaf50815276c67 Mon Sep 17 00:00:00 2001 From: Vaughn Dice Date: Mon, 4 Nov 2024 16:12:11 -0700 Subject: [PATCH] fix(release.yml): skip docker job if ref isn't main or tag Signed-off-by: Vaughn Dice --- .github/workflows/release.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 10b3d4a741..7653b2c221 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -386,6 +386,9 @@ jobs: docker: runs-on: "ubuntu-20.04" needs: [build-and-sign, build-spin-static] + # Only build/push Docker images if this is a v* tag or if this is main/canary + # i.e. skip for v* release branches + if: startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/main' permissions: contents: read packages: write