From 7717030fa55e6a7e866ad1868bff042b6d724c91 Mon Sep 17 00:00:00 2001 From: nahowo Date: Thu, 5 Dec 2024 13:39:49 +0900 Subject: [PATCH] =?UTF-8?q?docker-compose=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/cicd.yml | 3 ++- docker-compose.yml | 4 +--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/cicd.yml b/.github/workflows/cicd.yml index 920333b..d8ea7be 100644 --- a/.github/workflows/cicd.yml +++ b/.github/workflows/cicd.yml @@ -59,5 +59,6 @@ jobs: envs: GITHUB_SHA script: | sudo echo ${{ secrets.DOCKERHUB_PASSWORD }} | docker login -u ${{ secrets.DOCKERHUB_USERNAME }} --password-stdin - sudo docker pull ${{ secrets.DOCKERHUB_USERNAME }}/${{ secrets.DOCKERHUB_REPOSITORY }}:${GITHUB_SHA::7} + sudo docker-compose down + sudo docker-compose pull sudo docker-compose up -d \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index 660677b..a49bb40 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -21,10 +21,8 @@ services: - alchive springboot: + image: "alchive/alchive:latest" container_name: springboot - build: - context: . - dockerfile: Dockerfile restart: always depends_on: - mysql