Skip to content

Commit 5f2325d

Browse files
committed
fix(release.yml): skip docker job if ref isn't main or tag
Signed-off-by: Vaughn Dice <[email protected]>
1 parent 6df6273 commit 5f2325d

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)