Skip to content

Commit

Permalink
fix(release.yml): skip docker job if ref isn't main or tag
Browse files Browse the repository at this point in the history
Signed-off-by: Vaughn Dice <[email protected]>
  • Loading branch information
vdice committed Nov 4, 2024
1 parent 6df6273 commit 5f2325d
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 5f2325d

Please sign in to comment.