From c9a17cdfd5f0edd401e2e042aeb34edded614541 Mon Sep 17 00:00:00 2001 From: Felipe Mateus Date: Thu, 2 May 2024 13:02:39 -0300 Subject: [PATCH] fix deploy comand --- .github/workflows/deploy_v2.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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