Skip to content

Commit f4a1796

Browse files
fix: 배포 워크플로에서 buildx 디렉터리 권한 설정 추가 (#240)
배포 과정에서 발생할 수 있는 권한 문제를 방지하기 위해 buildx 디렉터리의 소유권을 ubuntu 사용자로 변경.
1 parent 11c1bbb commit f4a1796

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

.github/workflows/deploy-to-dev-ec2-docker.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,10 @@ jobs:
114114
add_kv KAKAO_APP_ID "${{ secrets.KAKAO_APP_ID }}"
115115
add_kv KMS_KEY_ID "${{ secrets.KMS_KEY_ID }}"
116116
117+
# buildx 디렉터리 권한 정리
118+
sudo mkdir -p /home/ubuntu/.docker/buildx/instances
119+
sudo chown -R ubuntu:ubuntu /home/ubuntu/.docker
120+
117121
# 커스텀 postgres 이미지 빌드
118122
docker build -t saerok-postgres:ko ./postgres-ko
119123

0 commit comments

Comments
 (0)