Skip to content

Commit

Permalink
ci: only run deploy if docker success
Browse files Browse the repository at this point in the history
  • Loading branch information
vnghia committed Jan 4, 2024
1 parent eb4c31a commit c466d39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ jobs:
deploy:
runs-on: ubuntu-latest
needs: docker-build
if: github.ref == 'refs/heads/main'
if: ${{ needs.docker-build.result == 'success' && github.ref == 'refs/heads/main' }}
steps:
- name: Checkout repository
uses: actions/checkout@v3
Expand Down

0 comments on commit c466d39

Please sign in to comment.