We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2224d58 commit 2d6cb33Copy full SHA for 2d6cb33
.github/workflows/deploy.yml
@@ -18,7 +18,7 @@ jobs:
18
name: Build and Push
19
runs-on: ubuntu-latest
20
outputs:
21
- image: ${{ steps.build-image.outputs.image }}
+ image-tag: ${{ github.sha }}
22
23
steps:
24
- name: Checkout
@@ -77,7 +77,7 @@ jobs:
77
with:
78
task-definition: task-definition.json
79
container-name: ${{ env.CONTAINER_NAME }}
80
- image: ${{ steps.login-ecr.outputs.registry }}/${{ env.ECR_REPOSITORY }}:${{ github.sha }}
+ image: ${{ steps.login-ecr.outputs.registry }}/${{ env.ECR_REPOSITORY }}:${{ needs.build.outputs.image-tag }}
81
82
- name: Deploy Amazon ECS task definition
83
uses: aws-actions/amazon-ecs-deploy-task-definition@v2
0 commit comments