Skip to content

Commit

Permalink
Update condition for Deploy-production in CI/CD workflow file
Browse files Browse the repository at this point in the history
The condition for Deploy-production action in the CI/CD workflow has been changed. The action is now triggered by 'workflow_dispatch' events specifically on 'dev' branches. This allows a manual triggering of the deployment for the 'dev' branch in the review environment.
  • Loading branch information
bgharbi-globalpos committed Jan 18, 2024
1 parent 59076e0 commit 0b17b7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ jobs:
images: '[{"name": "gol-2","image":{"registry_type": "DOCR","repository": "gol2","tag": "${{ env.tag }}"}}]'

Deploy-production:
if: github.event_name != 'pull_request' && github.ref == 'refs/heads/dev'
if: github.event_name != 'workflow_dispatch' && github.ref == 'refs/heads/dev'
needs: Build
runs-on: ubuntu-latest
env:
Expand Down

0 comments on commit 0b17b7b

Please sign in to comment.