Skip to content

Commit 502e8ac

Browse files
VIA-598 Update Deploy job to use action.yaml for deploy
1 parent d978f0a commit 502e8ac

File tree

1 file changed

+28
-5
lines changed

1 file changed

+28
-5
lines changed

.github/workflows/cicd-3-deploy.yaml

Lines changed: 28 additions & 5 deletions
Original file line numberDiff line numberDiff 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) }}

0 commit comments

Comments
 (0)