Skip to content

Commit

Permalink
Merge pull request #2908 from fermyon/backport-2903-to-v3.0
Browse files Browse the repository at this point in the history
[Backport v3.0] fix(release.yml): skip docker job if ref isn't main or tag
  • Loading branch information
vdice authored Nov 5, 2024
2 parents 12ef939 + a82dc74 commit 94f726a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 94f726a

Please sign in to comment.