Skip to content

Deploy DEV

Deploy DEV #7

Workflow file for this run

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 }}