-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (48 loc) · 1.44 KB
/
deploy_dev.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: Deploy DEV
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-dev
env:
DOCKER_BUILDKIT: '1'
defaults:
run:
shell: bash
jobs:
deploy_dev:
name: 04-deploy-dev.sh
permissions:
packages: read
id-token: write
contents: write
runs-on: 'ubuntu-24.04'
steps:
- uses: actions/[email protected]
- name: Checkout all branches and tags with full history
uses: actions/checkout@v4
with:
ref: ${{ inputs.branch }}
fetch-depth: 0
- name: Configure dev AWS credentials
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: ${{ secrets.AWS_AOE_DEV_ROLE_ARN }}
role-session-name: aoe-runner-deploy-dev
aws-region: eu-west-1
- name: Run CDK Diff
if: ${{ github.event.inputs.proceedDeploy == 'false' }}
run: ./deploy-scripts/04-deploy-dev.sh diff
env:
UTILITY_ACCOUNT_ID: ${{ secrets.UTILITY_ACCOUNT_ID }}
- name: Run CDK Deploy
if: ${{ github.event.inputs.proceedDeploy == 'true' }}
run: ./deploy-scripts/04-deploy-dev.sh deploy
env:
UTILITY_ACCOUNT_ID: ${{ secrets.UTILITY_ACCOUNT_ID }}