From 81301ee54ef72922a415cecd2a6dac4ee3e33b01 Mon Sep 17 00:00:00 2001 From: Maxime Beauchemin Date: Thu, 8 Feb 2024 14:21:15 -0800 Subject: [PATCH] fix(ephemeral): fix tagging command for ECR (#27057) --- .github/workflows/ephemeral-env.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ephemeral-env.yml b/.github/workflows/ephemeral-env.yml index 23bc5a428c..152f0b26a3 100644 --- a/.github/workflows/ephemeral-env.yml +++ b/.github/workflows/ephemeral-env.yml @@ -146,8 +146,8 @@ jobs: SHA: ${{ steps.get-sha.outputs.sha }} IMAGE_TAG: ${{ steps.get-sha.outputs.sha }}-ci run: | - docker tag $SHA $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG - docker tag $SHA $ECR_REGISTRY/$ECR_REPOSITORY:$SHA + docker tag $IMAGE_TAG $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG + docker tag $IMAGE_TAG $ECR_REGISTRY/$ECR_REPOSITORY:$SHA docker push -a $ECR_REGISTRY/$ECR_REPOSITORY ephemeral-env-up: