diff --git a/.github/workflows/deploy-production.yml b/.github/workflows/deploy-production.yml index fb73d5f..db110f9 100644 --- a/.github/workflows/deploy-production.yml +++ b/.github/workflows/deploy-production.yml @@ -91,10 +91,6 @@ jobs: container-name: app image: ${{ vars.ECR_REGISTRY }}/${{ vars.ECR_REPOSITORY }}@${{ needs.build_push.outputs.image_digest }} - - name: Display Rendered Template - id: display-rendered-template - run: cat ${{ steps.update-api-image-tag.outputs.task-definition }} | jq -r - - name: Deploy to Amazon ECS service uses: aws-actions/amazon-ecs-deploy-task-definition@v1 with: diff --git a/.github/workflows/deploy-staging.yml b/.github/workflows/deploy-staging.yml index 333f5dc..3e2ae0c 100644 --- a/.github/workflows/deploy-staging.yml +++ b/.github/workflows/deploy-staging.yml @@ -31,7 +31,7 @@ jobs: with: context: . load: true - tags: ${{ vars.ECR_REPOSITORY }}:latest + tags: ${{ vars.ECR_REPOSITORY }}:${{ github.sha }} - name: Configure AWS Credentials uses: aws-actions/configure-aws-credentials@v4 @@ -53,7 +53,7 @@ jobs: # Only building for AMD64 for now # platforms: linux/amd64,linux/arm64 push: true - tags: ${{ vars.ECR_REGISTRY }}/${{ vars.ECR_REPOSITORY }}:latest + tags: ${{ vars.ECR_REGISTRY }}/${{ vars.ECR_REPOSITORY }}:${{ github.sha }} - name: Push Image Digest to SSM run: | @@ -92,10 +92,6 @@ jobs: container-name: app image: ${{ vars.ECR_REGISTRY }}/${{ vars.ECR_REPOSITORY }}@${{ needs.build_push.outputs.image_digest }} - - name: Display Rendered Template - id: display-rendered-template - run: cat ${{ steps.update-api-image-tag.outputs.task-definition }} | jq -r - - name: Deploy to Amazon ECS service uses: aws-actions/amazon-ecs-deploy-task-definition@v1 with: