File tree Expand file tree Collapse file tree 1 file changed +28
-5
lines changed
Expand file tree Collapse file tree 1 file changed +28
-5
lines changed Original file line number Diff line number Diff line change @@ -67,11 +67,34 @@ jobs:
6767 deploy-stage :
6868 name : " Deploy stage"
6969 needs : [metadata]
70- uses : ./.github/workflows/stage-4-deploy.yaml
71- with :
72- environment : ${{ github.event.inputs.environment }}
73- tag_or_sha_to_deploy : " ${{ needs.metadata.outputs.tag }}"
74- secrets : inherit
70+ runs-on : ubuntu-latest
71+ environment :
72+ name : ${{ github.event.inputs.environment }}
73+ timeout-minutes : 20
74+ concurrency :
75+ group : dev-env
76+ cancel-in-progress : false
77+ permissions :
78+ id-token : write
79+ contents : read
80+ steps :
81+ - name : " Tag or SHA"
82+ id : tag-or-sha
83+ run : |
84+ echo "value=${{ needs.metadata.outputs.tag }}" >> $GITHUB_OUTPUT
85+ - name : " Checkout code"
86+ uses : actions/checkout@v5
87+ with :
88+ ref : ${{ needs.metadata.outputs.tag }}
89+ - name : " Deploy ${{ needs.metadata.outputs.tag }} to AWS (${{ github.event.inputs.environment }})"
90+ timeout-minutes : 10
91+ uses : ./.github/actions/deploy
92+ with :
93+ environment : ${{ github.event.inputs.environment }}
94+ tag_or_sha_to_deploy : ${{ needs.metadata.outputs.tag }}
95+ secret_aws_iam_role : ${{ secrets.IAM_ROLE }}
96+ secret_aws_account_id : ${{ secrets.AWS_ACCOUNT_ID }}
97+ secret_aws_slack_channel_id : ${{ secrets.ALARMS_SLACK_CHANNEL_ID }}
7598 acceptance-stage :
7699 name : " Acceptance stage"
77100 if : ${{ contains(fromJSON('["dev","preprod"]'), github.event.inputs.environment) }}
You can’t perform that action at this time.
0 commit comments