Skip to content

Commit 797a80c

Browse files
authored
Ec2 deploy 깃헙액션 docker관련 명령어 sudo추가 (#61)
* feat: 프로덕트 배포 sudo 추가 docker관련 명령어에서 permission에러로 인해 sudo명령어 추가 * fix: 로그인 화면 제스처 바 삭제
1 parent c56d18d commit 797a80c

File tree

2 files changed

+9
-10
lines changed

2 files changed

+9
-10
lines changed

.github/workflows/production-deploy.yml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ jobs:
2525
# 2. Docker 이미지 빌드, 태그, 푸시 (이미지 이름 형식 변경)
2626
- name: Build and push to Docker Hub
2727
run: |
28-
docker build -t ${{ secrets.DOCKERHUB_USERNAME }}/motimo-fe-production:${{ github.sha }} .
29-
docker push ${{ secrets.DOCKERHUB_USERNAME }}/motimo-fe-production:${{ github.sha }}
28+
sudo docker build -t ${{ secrets.DOCKERHUB_USERNAME }}/motimo-fe-production:${{ github.sha }} .
29+
sudo docker push ${{ secrets.DOCKERHUB_USERNAME }}/motimo-fe-production:${{ github.sha }}
3030
3131
# 3. EC2에 접속하여 배포
3232
- name: Deploy to EC2 instance
@@ -37,14 +37,13 @@ jobs:
3737
key: ${{ secrets.EC2_SSH_KEY }}
3838
script: |
3939
# EC2에서 Docker Hub 이미지 pull
40-
docker pull ${{ secrets.DOCKERHUB_USERNAME }}/motimo-fe-production:${{ github.sha }}
40+
sudo docker pull ${{ secrets.DOCKERHUB_USERNAME }}/motimo-fe-production:${{ github.sha }}
4141
4242
# 기존 컨테이너 중지 및 삭제
43-
if [ $(docker ps -q -f name=motimo-fe-production) ]; then
44-
docker stop motimo-fe-production
45-
docker rm motimo-fe-production
43+
if [ $(sudo docker ps -q -f name=motimo-fe-production) ]; then
44+
sudo docker stop motimo-fe-production
45+
sudo docker rm motimo-fe-production
4646
fi
4747
4848
# 새 컨테이너 실행
49-
docker run -d --name motimo-fe-production -p 3000:3000 --restart always --env-file ./production.env ${{ secrets.DOCKERHUB_USERNAME }}/motimo-fe-production:${{ github.sha }}
50-
49+
sudo docker run -d --name motimo-fe-production -p 3000:3000 --restart always --env-file ./production.env ${{ secrets.DOCKERHUB_USERNAME }}/motimo-fe-production:${{ github.sha }}

app/onboarding/_components/LoginScreen.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -280,9 +280,9 @@ export default function LoginScreen({ onNext }: LoginScreenProps) {
280280
</div>
281281

282282
{/* Gesture bar */}
283-
<div className="h-6 flex justify-center items-center">
283+
{/* <div className="h-6 flex justify-center items-center">
284284
<div className="w-[108px] h-1 bg-label-normal rounded-full"></div>
285-
</div>
285+
</div> */}
286286
</div>
287287
);
288288
}

0 commit comments

Comments
 (0)