Skip to content

Commit

Permalink
hotfix: TT-350 prod 서버 docker volume 설정
Browse files Browse the repository at this point in the history
logs 디렉토리를 logs 볼륨과 연결
쓰기 권한 부여
  • Loading branch information
snacktime81 committed Aug 1, 2024
1 parent d988d79 commit 3bf5d03
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/cd_prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ jobs:
echo "${{ secrets.DOCKERHUB_PASSWORD_PROD }}" | sudo docker login -u ${{ secrets.DOCKERHUB_USERNAME_PROD }} --password-stdin
sudo docker pull ${{ secrets.DOCKERHUB_USERNAME_PROD }}/github-actions-demo
sudo docker stop $(sudo docker ps -q) 2>/dev/null || true
sudo docker run --name github-actions-demo --rm -d -p 8080:8080 ${{ secrets.DOCKERHUB_USERNAME_PROD }}/github-actions-demo
sudo docker run --name github-actions-demo -v logs:/logs --rm -d -p 8080:8080 ${{ secrets.DOCKERHUB_USERNAME_PROD }}/github-actions-demo
sudo chmode logs 777
sudo docker system prune -f
EOF

0 comments on commit 3bf5d03

Please sign in to comment.