Skip to content

Commit 3e5207d

Browse files
authored
ci(deploy): tag the task definitions the deploy registers (MAG-5145) (#68)
Each revision CI registers now carries ManagedBy=github-actions, Repository and Workflow, so in AWS an untagged revision means one registered by hand. Needs the ecs:TagResource grant from Magma-Devs/devops#54 applied first; the register call is denied without it.
1 parent 6c9265e commit 3e5207d

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎.github/workflows/deploy.yml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ jobs:
6666
6767
NEW_ARN=$(aws ecs register-task-definition \
6868
--cli-input-json "$UPDATED" \
69+
--tags key=ManagedBy,value=github-actions "key=Repository,value=$GITHUB_REPOSITORY" key=Workflow,value=.github/workflows/deploy.yml \
6970
--query 'taskDefinition.taskDefinitionArn' \
7071
--output text)
7172
@@ -113,6 +114,7 @@ jobs:
113114
114115
NEW_ARN=$(aws ecs register-task-definition \
115116
--cli-input-json "$UPDATED" \
117+
--tags key=ManagedBy,value=github-actions "key=Repository,value=$GITHUB_REPOSITORY" key=Workflow,value=.github/workflows/deploy.yml \
116118
--query 'taskDefinition.taskDefinitionArn' \
117119
--output text)
118120

0 commit comments

Comments
 (0)