Skip to content

Commit

Permalink
Skip entire prod deployment job when not on master branch
Browse files Browse the repository at this point in the history
  • Loading branch information
arunvelsriram committed Aug 18, 2023
1 parent e81a942 commit b3bb5b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ jobs:
publish-production-image:
runs-on: ubuntu-20.04
needs: [check-linux-amd64-image, check-linux-arm64-image]
if: ${{ github.ref == 'refs/heads/master' }}
steps:
- name: Checkout
uses: actions/checkout@v3
Expand All @@ -79,7 +80,6 @@ jobs:
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Build and push production Docker images
if: ${{ github.ref == 'refs/heads/master' }}
uses: docker/build-push-action@v2
with:
push: true
Expand Down

0 comments on commit b3bb5b0

Please sign in to comment.