diff --git a/.github/workflows/deploy-docker.yml b/.github/workflows/deploy-docker.yml index c81be88..a3c1d6c 100644 --- a/.github/workflows/deploy-docker.yml +++ b/.github/workflows/deploy-docker.yml @@ -43,7 +43,7 @@ jobs: username: ${{ secrets.EC2_USERNAME }} key: ${{ secrets.EC2_PEM }} script: | - sudo docker stop server + sudo docker stop server ; sudo docker rm server ; sudo docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }} sudo docker pull ${{ secrets.DOCKER_USERNAME }}/${{ secrets.DOCKER_IMAGENAME }}