diff --git a/.github/workflows/cicd.yml b/.github/workflows/cicd.yml index 90cefa9..70fa5fd 100644 --- a/.github/workflows/cicd.yml +++ b/.github/workflows/cicd.yml @@ -62,5 +62,10 @@ jobs: - name: Docker run run: | - docker stop ${{ env.NAME }} && docker rm ${{ env.NAME }} && docker rmi ${{ env.DOCKER_IMAGE }}:latest - docker run -d -p 3000:3000 --name newproject --restart always ${{ env.DOCKER_IMAGE }}:latest +# docker stop ${{ env.NAME }} && docker rm ${{ env.NAME }} && docker rmi ${{ env.DOCKER_IMAGE }}:latest +# docker run -d -p 3000:3000 --name newproject --restart always ${{ env.DOCKER_IMAGE }}:latest + docker pull ${{ env.DOCKER_IMAGE }}:latest + docker stop ${{ env.NAME }} || true + docker rm ${{ env.NAME }} || true + docker rmi ${{ env.DOCKER_IMAGE }}:latest || true + docker run -d -p 3000:3000 --name ${{ env.NAME }} --restart always ${{ env.DOCKER_IMAGE }}:latest \ No newline at end of file