Skip to content

Commit

Permalink
Update deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
xorwns118 authored Sep 24, 2024
1 parent 553e843 commit d49ede9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,12 @@ jobs:
sudo docker ps -q -f name=${{ secrets.DOCKERHUB_CONTAINERNAME }} | xargs -r sudo docker stop
sudo docker ps -a -q -f name=${{ secrets.DOCKERHUB_CONTAINERNAME }} | xargs -r sudo docker rm
echo "환경 변수를 사용하여 새로운 컨테이너 실행"
echo "환경 변수를 적용하여 새로운 컨테이너 실행"
sudo docker run -d \
--env-file ./src/main/resources/.env \
-p 8080:8080 \
--name ${{ secrets.DOCKERHUB_CONTAINERNAME }} \
${{ secrets.DOCKERHUB_CONTAINERNAME }}/${{ secrets.DOCKERHUB_REPOSITORY }}:latest
echo "서버에서 오래된 Docker 이미지 정리"
echo "오래된 Docker 이미지 정리"
sudo docker image prune -f

0 comments on commit d49ede9

Please sign in to comment.