From 4078f8a943b9cee13f344e8671530dfebd07acae Mon Sep 17 00:00:00 2001 From: Avishek Saha Date: Thu, 6 Jul 2023 20:19:59 -0700 Subject: [PATCH] update according github aws.yml --- .github/workflows/main.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index f1c1c3a..6e7cb5e 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -54,14 +54,14 @@ jobs: env: ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }} ECR_REPOSITORY: ${{ secrets.ECR_NAME }} - IMAGE_TAG: latest + IMAGE_TAG: ${{ github.sha }} run: | # Build a docker container and # push it to ECR so that it can # be deployed to ECS. docker build -t $ECR_REGISTRY/$ECR_NAME:$IMAGE_TAG . docker push $ECR_REGISTRY/$ECR_NAME:$IMAGE_TAG - echo "::set-output name=image::$ECR_REGISTRY/$ECR_NAME:$IMAGE_TAG" + echo "image=$ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG" >> $GITHUB_OUTPUT Continuous-Deployment: needs: build-and-push-ecr-image