Skip to content

Commit 94f726a

Browse files
authored
Merge pull request #2908 from fermyon/backport-2903-to-v3.0
[Backport v3.0] fix(release.yml): skip docker job if ref isn't main or tag
2 parents 12ef939 + a82dc74 commit 94f726a

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)