Skip to content

Commit 16fe38d

Browse files
committed
Add container definition
1 parent ed6a152 commit 16fe38d

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.github/workflows/deploy.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,6 @@ jobs:
2929
with:
3030
name: GoCaptureECSCluster
3131
capabilities: CAPABILITY_NAMED_IAM
32+
parameter-overrides: "TaskImage=$REGISTRY/$REPOSITORY:$IMAGE_TAG"
3233
template: cloud-formation/ecs.yaml
3334
no-fail-on-empty-changeset: 1

cloud-formation/ecs.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
Parameters:
2+
TaskImage:
3+
Type: String
14
Resources:
25
ExecutionRole:
36
Type: AWS::IAM::Role
@@ -37,7 +40,8 @@ Resources:
3740
Type: AWS::ECS::TaskDefinition
3841
Properties:
3942
ContainerDefinitions:
40-
- ContainerDefinition
43+
- Name: GoCaptureContainer
44+
Image: !Ref TaskImage
4145
Cpu: .25 vCPU
4246
ExecutionRoleArn: !Ref ExecutionRole
4347
Family: GoCapture

0 commit comments

Comments
 (0)