Skip to content

Commit

Permalink
codebuild확인 buildspec 수정 3
Browse files Browse the repository at this point in the history
  • Loading branch information
codesejin authored Jul 23, 2023
1 parent 83f1302 commit 9e6dccc
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 9e6dccc

Please sign in to comment.