From d1b63ce070a794dc60dcc865ce39914dde10380e Mon Sep 17 00:00:00 2001 From: digorgonzola <29941279+digorgonzola@users.noreply.github.com> Date: Tue, 28 Nov 2023 22:08:49 +1100 Subject: [PATCH] release.yml: update task def with correct ecr repo --- .github/workflows/release.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 10a7fd6..63e6355 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -87,8 +87,9 @@ jobs: - name: Get Current Task Definition id: get-current-task-definition - run: | - aws ecs describe-task-definition --task-definition ${{ env.FAMILY }} --query taskDefinition > task-definition.json + run: > + aws ecs describe-task-definition --task-definition ${{ env.FAMILY }} + --query taskDefinition > task-definition.json - name: Update API image tag id: update-api-image-tag @@ -96,7 +97,7 @@ jobs: with: task-definition: task-definition.json container-name: api - image: 450356697252.dkr.ecr.ap-southeast-2.amazonaws.com/nginx:${{ env.TAG }} + image: ${{ vars.ECR_REGISTRY }}/${{ vars.ECR_REPOSITORY }}:${{ env.TAG }} - name: Display Rendered Template if: ${{ env.ACT }}