Skip to content

Commit

Permalink
bug: fix push-latest-images and publish-release (goharbor#279)
Browse files Browse the repository at this point in the history
Signed-off-by: Alan Tang <[email protected]>
Signed-off-by: Patrick Eschenbach <[email protected]>
  • Loading branch information
Standing-Man authored and qcserestipy committed Dec 22, 2024
1 parent 0eb90cc commit d2916be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/default.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ jobs:
args: build-dev --platform linux/amd64 export --path=./harbor-dev

push-latest-images:
if: github.event.pull_request == null && !startsWith(github.ref, 'refs/tags/v')
if: github.event_name == 'push' && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/'))
needs:
- lint
- test-code
Expand All @@ -84,7 +84,7 @@ jobs:


publish-release:
if: startsWith(github.ref, 'refs/tags/v')
if: github.event_name == 'push' && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/'))
needs:
- lint
- test-code
Expand Down

0 comments on commit d2916be

Please sign in to comment.