From 192eaf43a172fcb389a3b37f751c3480f03ce98b Mon Sep 17 00:00:00 2001 From: Due <48638700+Due-IT@users.noreply.github.com> Date: Mon, 2 Dec 2024 20:39:25 +0900 Subject: [PATCH] Update gradle.yml --- .github/workflows/gradle.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index a40e4b6..5fbf4c2 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -72,6 +72,7 @@ jobs: passphrase: ${{ secrets.SSH_PASSPHRASE }} envs: GITHUB_SHA script: | + cd ~ sudo docker login -u ${{ secrets.DOCKERHUB_USERNAME }} -p ${{ secrets.DOCKERHUB_PASSWORD }} sudo docker pull ${{ secrets.DOCKERHUB_USERNAME }}/${{ secrets.DOCKERHUB_REPOSITORY }} echo "SPRING_DATASOURCE_URL=${{ secrets.SPRING_DATASOURCE_URL }}" > .env @@ -84,6 +85,7 @@ jobs: echo "DOCKERHUB_REPOSITORY=${{ secrets.DOCKERHUB_REPOSITORY }}" >> .env echo "ok" + ls -al sudo docker-compose down sudo docker-compose up -d