Skip to content

Commit 4441c8c

Browse files
authored
Merge pull request #2903 from vdice/fix/ci-release-branch-docker-job
fix(release.yml): skip docker job if ref isn't main or tag
2 parents 6df6273 + 5f2325d commit 4441c8c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -386,6 +386,9 @@ jobs:
386386
docker:
387387
runs-on: "ubuntu-20.04"
388388
needs: [build-and-sign, build-spin-static]
389+
# Only build/push Docker images if this is a v* tag or if this is main/canary
390+
# i.e. skip for v* release branches
391+
if: startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/main'
389392
permissions:
390393
contents: read
391394
packages: write

0 commit comments

Comments
 (0)