Skip to content

Commit

Permalink
fix deploy code
Browse files Browse the repository at this point in the history
  • Loading branch information
eufelipemateus committed May 2, 2024
1 parent 1c7cdf0 commit 303f1b3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/deploy_v2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,6 @@ jobs:
key: ${{ secrets.SSH_PRIVATE_KEY }}
script: |
cd ${{secrets.WORK_DIR}}
docker login -u "adminuser" -p "${{secrets.DOCKER_TOKEN}}" docker.felipemateus.com
docker rm $(docker stop $(docker ps -a -q --filter ancestor=${{ github.event.repository.name }} --format="{{.ID}}")) -f
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
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 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

0 comments on commit 303f1b3

Please sign in to comment.