diff --git a/.github/workflows/CD_Prod.yml b/.github/workflows/CD_Prod.yml index a737e5b..a510b5f 100644 --- a/.github/workflows/CD_Prod.yml +++ b/.github/workflows/CD_Prod.yml @@ -93,5 +93,5 @@ jobs: docker stop myongsik_prod2 docker rm myongsik_prod2 sudo docker pull ${{ secrets.DOCKER_USERNAME }}/myongsik - sudo docker run -d --name myongsik_prod2 -v /etc/localtime:/etc/localtime:ro -e JAVA_OPTS=-Djasypt.encryptor.password=${{ secrets.YML_PASSWORD }} -e TZ=Asia/Seoul -e ENVIRONMENT_VALUE=-Dspring.profiles.active=prod -p 8085:8080 ${{ secrets.DOCKER_USERNAME }}/myongsik:latest + sudo docker run -d --name myongsik_prod2 -v /var/log/app:/var/log/app -v /etc/localtime:/etc/localtime:ro -e JAVA_OPTS=-Djasypt.encryptor.password=${{ secrets.YML_PASSWORD }} -e TZ=Asia/Seoul -e ENVIRONMENT_VALUE=-Dspring.profiles.active=prod -p 8085:8080 ${{ secrets.DOCKER_USERNAME }}/myongsik:latest docker rmi -f $(docker images -f "dangling=true" -q)