Skip to content

Commit

Permalink
Only push docker image and deploy on main
Browse files Browse the repository at this point in the history
Update the pipeline to only push and deploy if the branch is main (no other branches or PRs).
  • Loading branch information
mpanne committed Mar 18, 2024
1 parent 7ed7d7d commit 22a04ea
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ jobs:

build-and-push-image:
runs-on: ubuntu-latest
if: ${{ github.ref == 'refs/heads/main' }}
needs:
- build
- audit-licenses
Expand Down Expand Up @@ -243,6 +244,7 @@ jobs:
deploy:
needs: [build-and-push-image]
runs-on: ubuntu-latest
if: ${{ github.ref == 'refs/heads/main' }}
timeout-minutes: 10
permissions:
packages: read
Expand Down
2 changes: 1 addition & 1 deletion .talismanrc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
fileignoreconfig:
- filename: .github/workflows/pipeline.yml
checksum: db589e5d87d59b8b0e559f566e93e59226d1f8fb96dc3e7b1a6ede9706d095a9
checksum: d68bbaebe5f7a214abef1ba6a0ff3dda6f55d0462bb09158f3d780bd50e94ab7
- filename: .github/workflows/scan.yml
checksum: 14fd20b334e55e9f6ee23d13fa82d2c17d94cb59928b7dd5828e8adca40cf1d8
- filename: .env.example
Expand Down

0 comments on commit 22a04ea

Please sign in to comment.