diff --git a/.github/workflows/cd_prod.yml b/.github/workflows/cd_prod.yml index f1e8075b..006f63a6 100644 --- a/.github/workflows/cd_prod.yml +++ b/.github/workflows/cd_prod.yml @@ -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