Skip to content

Commit

Permalink
Docs: work.yml 수정
Browse files Browse the repository at this point in the history
- 도커 이미지 충돌 방지 스크립트 추가
  • Loading branch information
don9m1n committed Mar 22, 2024
1 parent fd0550b commit 6ec56dc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/work.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,5 +68,8 @@ jobs:
script: |
sudo docker login -u ${{ secrets.DOCKER_HUB_USERNAME }} -p ${{ secrets.DOCKER_HUB_PASSWORD }}
sudo docker pull ${{ secrets.DOCKER_REPO }}
sudo docker stop readinglog_app || true
sudo docker rm readinglog_app || true
sudo docker run --name=readinglog_app --restart unless-stopped \
-p 8080:8080 -e TZ=Asia/Seoul -d ${{ secrets.DOCKER_REPO }}
sudo docker image prune -f

0 comments on commit 6ec56dc

Please sign in to comment.