forked from truemark/hello-world-java
-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (29 loc) · 862 Bytes
/
cdk-deploy.yml
File metadata and controls
31 lines (29 loc) · 862 Bytes
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
on:
workflow_call:
secrets:
aws_assume_role:
description: "AWS role to assume"
required: false
inputs:
environment:
description: "Environment to deploy to"
required: true
type: string
jobs:
deploy:
runs-on: ubuntu-latest
container: # Replace with GitHub action in the future
image: public.ecr.aws/truemark/aws-cdk:ubuntu
environment: ${{ inputs.environment }}
steps:
- uses: actions/checkout@v4
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v2
with:
role-to-assume: "${{ secrets.aws_assume_role }}"
aws-region: "us-east-2"
- name: CDK Deploy
run: |
cd cdk
pnpm i --frozen-lockfile
cdk -c env=${{ inputs.environment }} deploy --require-approval never