Skip to content

Commit

Permalink
Merge pull request #420 from daedongbread/fix/multi_platform_build
Browse files Browse the repository at this point in the history
fix: multi platform build 에러 수정 및 prod CD에도 적용
  • Loading branch information
grand7070 authored Jun 13, 2024
2 parents 86307ba + 4f584d4 commit 5cf3bce
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/prod_CD.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ jobs:
ECR_REPOSITORY: ${{ env.ECR_REPOSITORY }}
IMAGE_TAG: ${{ github.sha }}
run: |
docker build -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG .
docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG
docker buildx create --use
docker buildx build --platform linux/amd64,linux/arm64 --tag $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG --push .
echo "IMAGE_TAG=$IMAGE_TAG" >> $GITHUB_OUTPUT
- name: Checkout Infra Repository
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/stage_CD.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,7 @@ jobs:
IMAGE_TAG: ${{ github.sha }}
run: |
docker buildx create --use
docker buildx build --platform linux/amd64,linux/arm64 -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG .
docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG
docker buildx build --platform linux/amd64,linux/arm64 --tag $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG --push .
echo "IMAGE_TAG=$IMAGE_TAG" >> $GITHUB_OUTPUT
- name: Checkout Infra Repository
Expand Down

0 comments on commit 5cf3bce

Please sign in to comment.