Skip to content

Commit

Permalink
deploy workflows: remove unnecessary step and set image tag to sha fo…
Browse files Browse the repository at this point in the history
…r staging
  • Loading branch information
digorgonzola committed Jan 23, 2024
1 parent 4326677 commit 1c6dcaa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/deploy-production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
8 changes: 2 additions & 6 deletions .github/workflows/deploy-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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: |
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 1c6dcaa

Please sign in to comment.