diff --git a/.github/workflows/deployment.yml b/.github/workflows/deployment.yml index 9e071d2039..4afcb6bd54 100644 --- a/.github/workflows/deployment.yml +++ b/.github/workflows/deployment.yml @@ -48,8 +48,8 @@ jobs: ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }} IMAGE_TAG: latest run: | - docker build -t $ECR_REPOSITORY ./services/question - docker push $ECR_REGISTRY/$ECR_REPOSITORY:latest + docker build -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG ./services/question + docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG echo "image=$ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG" >> $GITHUB_OUTPUT # - name: Fill in the new image ID in the Amazon ECS task definition