Skip to content

Commit 2d6cb33

Browse files
committed
fix: Correct image output reference in deployment workflow
1 parent 2224d58 commit 2d6cb33

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/deploy.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
name: Build and Push
1919
runs-on: ubuntu-latest
2020
outputs:
21-
image: ${{ steps.build-image.outputs.image }}
21+
image-tag: ${{ github.sha }}
2222

2323
steps:
2424
- name: Checkout
@@ -77,7 +77,7 @@ jobs:
7777
with:
7878
task-definition: task-definition.json
7979
container-name: ${{ env.CONTAINER_NAME }}
80-
image: ${{ steps.login-ecr.outputs.registry }}/${{ env.ECR_REPOSITORY }}:${{ github.sha }}
80+
image: ${{ steps.login-ecr.outputs.registry }}/${{ env.ECR_REPOSITORY }}:${{ needs.build.outputs.image-tag }}
8181

8282
- name: Deploy Amazon ECS task definition
8383
uses: aws-actions/amazon-ecs-deploy-task-definition@v2

0 commit comments

Comments
 (0)