Skip to content

Commit 8f8446f

Browse files
committed
Infra: AWS 세팅 추가
- EC2 실행 시, ghcr.io에 자동으로 로그인 되도록 추가
1 parent 34aac99 commit 8f8446f

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

infra/terraform/main.tf

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -194,10 +194,7 @@ sudo mkswap /swapfile
194194
sudo swapon /swapfile
195195
sudo sh -c 'echo "/swapfile swap swap defaults 0 0" >> /etc/fstab'
196196
197-
# git 설치
198-
yum install git -y
199-
200-
#도커 설치 및 실행/활성화
197+
# 도커 설치 및 실행/활성화
201198
yum install docker -y
202199
systemctl enable docker
203200
systemctl start docker
@@ -229,6 +226,8 @@ docker run -d \
229226
-v /dockerProjects/npm_1/volumes/etc/letsencrypt:/etc/letsencrypt \
230227
jc21/nginx-proxy-manager:latest
231228
229+
# ghcr.io 로그인
230+
echo "${var.github_access_token_1}" | docker login ghcr.io -u ${var.github_access_token_1_owner} --password-stdin
232231
233232
END_OF_FILE
234233
}

0 commit comments

Comments
 (0)