Skip to content

Commit 8744ea5

Browse files
authored
Update aws.yml
Update
1 parent a7ff28d commit 8744ea5

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

aws.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -43,20 +43,20 @@ jobs:
4343
- name: Build, tag, and push image to Amazon ECR
4444
id: build-image
4545
env:
46-
ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }}
47-
IMAGE_TAG: ${{ github.sha }}
46+
ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }}
47+
IMAGE_TAG: ${{ github.sha }}
4848
run: |
49-
docker build -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG .
50-
docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG
51-
echo "image=$ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG" >> $GITHUB_OUTPUT
49+
docker build -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG .
50+
docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG
51+
echo "image=$ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG" >> $GITHUB_OUTPUT
5252

5353
- name: Update Amazon ECS task definition with new image
5454
id: task-def
5555
uses: aws-actions/amazon-ecs-render-task-definition@v1
5656
with:
57-
task-definition: ${{ env.ECS_TASK_DEFINITION }}
58-
container-name: ${{ env.CONTAINER_NAME }}
59-
image: ${{ steps.build-image.outputs.image }}
57+
task-definition: ${{ env.ECS_TASK_DEFINITION }}
58+
container-name: ${{ env.CONTAINER_NAME }}
59+
image: ${{ steps.build-image.outputs.image }}
6060

6161
- name: Deploy Amazon ECS task definition
6262
uses: aws-actions/amazon-ecs-deploy-task-definition@v1

0 commit comments

Comments
 (0)