mirror of
https://github.com/Sea-Haven-Industries/.github.git
synced 2026-10-07 16:18:55 +00:00
Compare commits
2 commits
4505931ad8
...
18b37b7eab
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
18b37b7eab | ||
|
|
3cde673b9d |
2 changed files with 11 additions and 2 deletions
11
.github/workflows/cd-cdk.yaml
vendored
11
.github/workflows/cd-cdk.yaml
vendored
|
|
@ -35,6 +35,10 @@ on:
|
|||
description: "CloudFormation stack name (for pre-flight checks)"
|
||||
type: string
|
||||
default: ""
|
||||
stacks:
|
||||
description: "CDK stack selector(s) to deploy (space-separated construct ids/patterns). Default deploys every stack in the app; set per job when a multi-account app splits deploys across roles."
|
||||
type: string
|
||||
default: "--all"
|
||||
post-deploy-script:
|
||||
description: "Optional path to a script to run after CDK deploy (e.g. web build, S3 sync)"
|
||||
type: string
|
||||
|
|
@ -121,7 +125,12 @@ jobs:
|
|||
|
||||
- name: CDK deploy
|
||||
working-directory: ${{ inputs.cdk-dir }}
|
||||
run: npx -y cdk deploy --all --require-approval never
|
||||
# Env-var indirection (not inline expression interpolation) so shell
|
||||
# metacharacters in the input are never parsed as script; unquoted
|
||||
# $STACKS deliberately word-splits multiple selectors.
|
||||
env:
|
||||
STACKS: ${{ inputs.stacks }}
|
||||
run: npx -y cdk deploy $STACKS --require-approval never
|
||||
|
||||
- name: Post-deploy script
|
||||
if: ${{ inputs.post-deploy-script != '' }}
|
||||
|
|
|
|||
|
|
@ -1247,7 +1247,7 @@ Resources:
|
|||
StringEquals:
|
||||
token.actions.githubusercontent.com:aud: sts.amazonaws.com
|
||||
StringLike:
|
||||
token.actions.githubusercontent.com:sub: !Sub repo:${GitHubOrg}/seahaven-account-baseline:ref:refs/heads/main
|
||||
token.actions.githubusercontent.com:sub: !Sub repo:${GitHubOrg}/seahaven-org-baseline:ref:refs/heads/main
|
||||
Policies:
|
||||
- PolicyName: cdk-deploy
|
||||
PolicyDocument:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue