-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
14f1f58
commit 40138af
Showing
2 changed files
with
57 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
name: Deploy QA | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
branch: | ||
description: Branch to deploy | ||
required: true | ||
proceedDeploy: | ||
description: Set to true to skip CDK diff and directly proceed with deployment. Default is false. | ||
required: true | ||
default: 'false' | ||
|
||
concurrency: deploy-qa | ||
|
||
env: | ||
DOCKER_BUILDKIT: '1' | ||
|
||
defaults: | ||
run: | ||
shell: bash | ||
|
||
jobs: | ||
deploy_qa: | ||
name: 05-deploy-qa.sh | ||
permissions: | ||
packages: read | ||
id-token: write | ||
contents: write | ||
runs-on: 'ubuntu-24.04' | ||
steps: | ||
- uses: actions/checkout@v4.2.1 | ||
- name: Checkout all branches and tags with full history | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ inputs.branch }} | ||
fetch-depth: 0 | ||
- name: Configure qa AWS credentials | ||
uses: aws-actions/configure-aws-credentials@v4 | ||
with: | ||
role-to-assume: ${{ secrets.AWS_AOE_QA_ROLE_ARN }} | ||
role-session-name: aoe-runner-deploy-qa | ||
aws-region: eu-west-1 | ||
|
||
- name: Run CDK Diff | ||
if: ${{ github.event.inputs.proceedDeploy == 'false' }} | ||
run: ./deploy-scripts/05-deploy-qa.sh diff | ||
env: | ||
UTILITY_ACCOUNT_ID: ${{ secrets.UTILITY_ACCOUNT_ID }} | ||
|
||
- name: Run CDK Deploy | ||
if: ${{ github.event.inputs.proceedDeploy == 'true' }} | ||
run: ./deploy-scripts/05-deploy-qa.sh deploy | ||
env: | ||
UTILITY_ACCOUNT_ID: ${{ secrets.UTILITY_ACCOUNT_ID }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters