mirror of
https://github.com/Sea-Haven-Industries/meal-order-manager.git
synced 2026-10-07 16:18:54 +00:00
Fix deploy workflow to match org CD pattern (#6)
Use cfn-role-arn as input (not secret), pass deploy-role-arn and parameter-overrides as secrets, add permissions and concurrency blocks matching the standard org pattern.
This commit is contained in:
parent
440117c9a1
commit
135c6be6f7
1 changed files with 11 additions and 1 deletions
12
.github/workflows/deploy.yml
vendored
12
.github/workflows/deploy.yml
vendored
|
|
@ -4,10 +4,20 @@ on:
|
||||||
push:
|
push:
|
||||||
branches: [main]
|
branches: [main]
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
id-token: write
|
||||||
|
contents: read
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: deploy
|
||||||
|
cancel-in-progress: false
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
deploy:
|
deploy:
|
||||||
uses: Sea-Haven-Industries/.github/.github/workflows/cd-sam.yaml@main
|
uses: Sea-Haven-Industries/.github/.github/workflows/cd-sam.yaml@main
|
||||||
with:
|
with:
|
||||||
stack-name: meal-order-manager
|
stack-name: meal-order-manager
|
||||||
|
cfn-role-arn: arn:aws:iam::328440206208:role/github-cfn-execution-role
|
||||||
secrets:
|
secrets:
|
||||||
cfn-role-arn: ${{ secrets.AWS_DEPLOY_ROLE_ARN }}
|
deploy-role-arn: ${{ secrets.AWS_DEPLOY_ROLE_ARN }}
|
||||||
|
parameter-overrides: ${{ secrets.SAM_PARAMETER_OVERRIDES }}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue