From fc7bd4b72343d6775492d7ef103e4feaccc36fd4 Mon Sep 17 00:00:00 2001 From: uwoobeat Date: Thu, 30 Nov 2023 00:37:57 +0900 Subject: [PATCH] =?UTF-8?q?chore:=20=EB=8F=84=EC=BB=A4=20=EB=AF=B8?= =?UTF-8?q?=EC=82=AC=EC=9A=A9=20=EB=A6=AC=EC=86=8C=EC=8A=A4=20=EC=82=AD?= =?UTF-8?q?=EC=A0=9C=20=EB=AA=85=EB=A0=B9=EC=96=B4=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/develop_build_deploy.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/develop_build_deploy.yml b/.github/workflows/develop_build_deploy.yml index e2081f53f..ece86d04d 100644 --- a/.github/workflows/develop_build_deploy.yml +++ b/.github/workflows/develop_build_deploy.yml @@ -83,7 +83,7 @@ jobs: uses: appleboy/ssh-action@master env: NCP_CONTAINER_REGISTRY: ${{ secrets.NCP_CONTAINER_REGISTRY }} - NCP_IMAGE_TAG: ${{ needs.build.outputs.sha }} + NCP_IMAGE_TAG: ${{ steps.github-sha-short.outputs.sha }} with: host: ${{ secrets.NCP_HOST }} username: tenminute @@ -94,5 +94,6 @@ jobs: echo "${{ secrets.NCP_SECRET_KEY }}" | docker login -u "${{ secrets.NCP_ACCESS_KEY }}" --password-stdin "${{ secrets.NCP_CONTAINER_REGISTRY }}" docker pull ${{ secrets.NCP_CONTAINER_REGISTRY }}/server-spring:${{ needs.build.outputs.sha }} docker compose -f /home/tenminute/docker-compose.yaml up -d + docker system prune -a -f # docker stop server-spring && docker rm server-spring # docker run -d --name server-spring -p 8080:8080 -d ${{ secrets.NCP_CONTAINER_REGISTRY }}/server-spring:${{ needs.build.outputs.sha }}