diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 865d245..4a08313 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -41,8 +41,8 @@ jobs: key: ${{ secrets.KEY }} envs: GITHUB_SHA script: | - sudo docker stop ticats - sudo docker rm ticats - sudo docker image rm gabang2/ticats:latest - sudo docker pull gabang2/ticats:latest - sudo docker run -d -p 8080:8080 --name ticats ${{ secrets.DOCKER_ENV }} gabang2/ticats:latest + sudo docker stop ticats || true + sudo docker rm ticats || true + sudo docker image rm ${{ secrets.DOCKER_USERNAME }}/ticats:latest || true + sudo docker pull ${{ secrets.DOCKER_USERNAME }}/ticats:latest + sudo docker run -d -p 8080:8080 --name ticats ${{ secrets.DOCKER_ENV }} ${{ secrets.DOCKER_USERNAME }}/ticats:latest