Skip to content

Commit f62fabf

Browse files
committed
Set ECR stack name from a variable
1 parent 7d570da commit f62fabf

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/build.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,18 @@ jobs:
2525
capabilities: CAPABILITY_NAMED_IAM
2626
no-fail-on-empty-changeset: 1
2727

28+
- name: Set ECR Stack Name
29+
id: ecr-stack-name
30+
run: echo ECR_STACK_NAME=GoCaptureECR >> $GITHUB_OUTPUT
31+
2832
- name: Deploy ECR repository
2933
uses: aws-actions/aws-cloudformation-github-deploy@v1
3034
with:
31-
name: GoCaptureECR
35+
name: ${{ steps.ecr-stack-name.outputs.ECR_STACK_NAME }}
3236
template: cloud-formation/ecr.yaml
3337
no-fail-on-empty-changeset: 1
3438

39+
3540
- name: Beta Deploy User
3641
uses: aws-actions/aws-cloudformation-github-deploy@v1
3742
with:

0 commit comments

Comments
 (0)