diff --git a/.github/workflows/ecr.yml b/.github/workflows/ecr.yml index 3d95eba..a435953 100644 --- a/.github/workflows/ecr.yml +++ b/.github/workflows/ecr.yml @@ -56,6 +56,8 @@ jobs: - name: Publish Image to ECR(BATCH-SERVICE) run: | + echo ${{ github.sha }} + if [ "${{ env.DEPLOY_ENV }}" == "PROD" ]; then docker tag batch-service:latest ${{ env.AWS_PRD_BATCH_ECR }}:${{ github.sha }} docker push ${{ env.AWS_PRD_BATCH_ECR }}:${{ github.sha }} @@ -87,6 +89,8 @@ jobs: - name: Update Kustomize image run: | + echo ${{ github.sha }} + if [ "${{ env.DEPLOY_ENV }}" == "PROD" ]; then KUSTOMIZE_PATH="batch-service-kusto/overlays/prd" && cd $KUSTOMIZE_PATH kustomize edit set image app-batch-img="${{ env.AWS_PRD_BATCH_ECR }}:${{ github.sha }}"