We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4a403c5 commit 18604bcCopy full SHA for 18604bc
.github/workflows/deploy-to-ecr.yml
@@ -51,6 +51,7 @@ jobs:
51
ECR_FULL_REPO_URL=$(terraform output -raw ecr_repository_url)
52
ECR_REGISTRY=$(echo "$ECR_FULL_REPO_URL" | cut -d'/' -f1)
53
echo "ECR_REGISTRY=$ECR_REGISTRY" >> $GITHUB_ENV
54
+ echo "ECR_REPOSITORY_URL=$ECR_FULL_REPO_URL" >> $GITHUB_ENV
55
working-directory: ${{ env.TERRAFORM_DIR }}
56
57
- name: Login to Amazon ECR
@@ -69,7 +70,9 @@ jobs:
69
70
context: .
71
file: ./Dockerfile
72
push: true
- tags: ${{ env.ECR_REPOSITORY_URL }}:latest
73
+ tags: |
74
+ ${{ env.ECR_REPOSITORY_URL }}:${{ env.IMAGE_TAG }}
75
+ ${{ env.ECR_REPOSITORY_URL }}:latest
76
77
# Second Apply: Update ECS with new image
78
- name: Terraform Apply (Update ECS with new image)
0 commit comments