diff --git a/.github/workflows/work.yml b/.github/workflows/work.yml index 2fd209c..98d89b1 100644 --- a/.github/workflows/work.yml +++ b/.github/workflows/work.yml @@ -66,9 +66,9 @@ jobs: key: ${{ secrets.SSH_KEY }} port: 22 script: | - docker login -u ${{ secrets.DOCKER_HUB_USERNAME }} -p ${{ secrets.DOCKER_HUB_PASSWORD }} - docker stop trip_app || true - docker rm trip_app || true - docker pull ${{ secrets.DOCKER_REPO }}/trip - docker run --name=trip_app --restart unless-stopped \ + sudo docker login -u ${{ secrets.DOCKER_HUB_USERNAME }} -p ${{ secrets.DOCKER_HUB_PASSWORD }} + sudo docker stop trip_app || true + sudo docker rm trip_app || true + sudo docker pull ${{ secrets.DOCKER_REPO }}/trip + sudo docker run --name=trip_app --restart unless-stopped \ -p 8080:8080 -e TZ=Asia/Seoul -d ${{ secrets.DOCKER_REPO }}/trip