Skip to content

Commit

Permalink
Only deploy to prod if deploy to test succeeded (#1515)
Browse files Browse the repository at this point in the history
  • Loading branch information
gunndabad authored Sep 16, 2024
1 parent 55edcad commit c8a58fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ jobs:

deploy_prod:
name: Deploy production environment
needs: [package, deploy_preprod]
if: always() && (needs.deploy_preprod.result == 'success' || needs.deploy_preprod.result == 'skipped') && (needs.package.result == 'success')
needs: [deploy_test, package, deploy_preprod]
if: always() && (needs.deploy_preprod.result == 'success' || needs.deploy_preprod.result == 'skipped') && (needs.package.result == 'success') && (needs.deploy_test.result == 'success')
uses: ./.github/workflows/deploy-prod.yml
with:
docker_image: ${{ needs.package.outputs.docker_image }}
Expand Down

0 comments on commit c8a58fe

Please sign in to comment.