Skip to content

Commit

Permalink
ci(deploy.yml): only trigger build-and-push and deploy on push
Browse files Browse the repository at this point in the history
  • Loading branch information
davidpomerenke committed Apr 26, 2024
1 parent 1ab6279 commit f2f2134
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ jobs:
ZENROWS_API_KEY: ${{ secrets.ZENROWS_API_KEY }}

build-and-push:
if: ${{ github.event_name == 'push' }}
needs: test
runs-on: ubuntu-22.04
outputs:
Expand Down Expand Up @@ -99,6 +100,7 @@ jobs:
run: docker push --all-tags socialchangelab/media-impact-monitor

deploy:
if: ${{ github.event_name == 'push' }}
needs: build-and-push
runs-on: ubuntu-22.04
steps:
Expand Down

0 comments on commit f2f2134

Please sign in to comment.