diff --git a/.github/workflows/deploy_v2.yml b/.github/workflows/deploy_v2.yml index f92d43e..c0e12b5 100644 --- a/.github/workflows/deploy_v2.yml +++ b/.github/workflows/deploy_v2.yml @@ -42,5 +42,5 @@ jobs: script: | cd ${{secrets.WORK_DIR}} sudo docker login -u "adminuser" -p "${{secrets.DOCKER_TOKEN}}" docker.felipemateus.com - sudo docker rm $(docker stop $(docker ps -a -q --filter ancestor=${{ github.event.repository.name }} --format="{{.ID}}")) -f + sudo docker rm $(docker stop $(docker ps -aqf "name=${{ github.event.repository.name }}")) -f sudo docker run --restart=always --network=host -dp 127.0.0.1:8000:8000 --name ${{ github.event.repository.name }} ${{ github.repository_owner }}/${{ github.event.repository.name }}:test \ No newline at end of file