From 9e6dccc8719916efbd1cb1a7db08078287e3a121 Mon Sep 17 00:00:00 2001 From: sejin park <101460733+codesejin@users.noreply.github.com> Date: Sun, 23 Jul 2023 15:59:29 +0900 Subject: [PATCH] =?UTF-8?q?=20codebuild=ED=99=95=EC=9D=B8=20buildspec=20?= =?UTF-8?q?=EC=88=98=EC=A0=95=203?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/cicd.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/cicd.yml b/.github/workflows/cicd.yml index d1cee60..24b81b1 100644 --- a/.github/workflows/cicd.yml +++ b/.github/workflows/cicd.yml @@ -51,8 +51,6 @@ jobs: # 추가: CodeBuild 빌드 아티팩트에서 생성된 이미지 정보를 가져오는 단계 - name: Get image URI from CodeBuild build output run: | - ECR_REGISTRY=$ECR_REGISTRY - ECR_REPOSITORY=$ECR_REPOSITORY IMAGE_TAG=$(aws codebuild batch-get-builds --ids ${{ env.CODEBUILD_BUILD_ID }} --query "builds[].artifacts[].files[?name=='imagedefinitions.json'].identifier" --output text) IMAGE_URI=$(aws codebuild batch-get-builds --ids ${{ env.CODEBUILD_BUILD_ID }} --query "builds[].artifacts[].location" --output text | jq -r ".[] | .identifier" | grep $IMAGE_TAG) echo "ECR Image URI: $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG"