From 84ff95b68f3e23076576ca6a9fb26217bf92be91 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=9D=B4=EB=AF=BC=ED=98=81?= <104811969+MinsFuture@users.noreply.github.com> Date: Tue, 11 Jun 2024 16:33:50 +0900 Subject: [PATCH] Update gradle.yml --- .github/workflows/gradle.yml | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index ced2484..9a6acf9 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -66,12 +66,11 @@ jobs: key: ${{ secrets.GCP_PRIVATE_KEY }} passphrase : ${{ secrets.GCP_KEY_PASSPHRASE }} script: | - sudo su - docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }} + sudo docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }} if [ $(docker ps -q -f name=petwalk-backend) ]; then - docker stop petwalk-backend - docker rm petwalk-backend + sudo docker stop petwalk-backend + sudo docker rm petwalk-backend fi - docker pull ${{ secrets.DOCKER_USERNAME }}/petwalk - docker run --name petwalk-backend -d -p 8080:8080 ${{ secrets.DOCKER_USERNAME }}/petwalk - docker image prune -f + sudo docker pull ${{ secrets.DOCKER_USERNAME }}/petwalk + sudo docker run --name petwalk-backend -d -p 8080:8080 ${{ secrets.DOCKER_USERNAME }}/petwalk + sudo docker image prune -f