From 510b43a95ab38c545394b8faae1c6354795064ca Mon Sep 17 00:00:00 2001 From: Stewart Wallace Date: Tue, 24 Aug 2021 13:02:16 +0100 Subject: [PATCH] Update main.yml --- .github/workflows/main.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index dcacc77..a38fdf7 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -37,7 +37,7 @@ jobs: ECR_REPOSITORY: aws-cdk IMAGE_TAG: ${{ steps.branch_name.outputs.SOURCE_TAG }} run: | - docker build -t cdk-docker . + docker build -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG . docker push public.ecr.aws/p8j5c2q4/cdk-docker:$IMAGE_TAG - name: Build, tag, and push image to Amazon ECR @@ -46,7 +46,7 @@ jobs: ECR_REPOSITORY: aws-cdk IMAGE_TAG: V${{ steps.branch_name.outputs.SOURCE_TAG }} run: | - docker build -t cdk-docker . + docker build -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG . docker push public.ecr.aws/p8j5c2q4/cdk-docker:$IMAGE_TAG - name: Build, tag, and push image to Amazon ECR @@ -55,6 +55,6 @@ jobs: ECR_REPOSITORY: aws-cdk IMAGE_TAG: latest run: | - docker build -t cdk-docker . + docker build -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG . docker push public.ecr.aws/p8j5c2q4/cdk-docker:$IMAGE_TAG