From ba018fc2d92147399225b4b80e63a0f621f55b14 Mon Sep 17 00:00:00 2001 From: yu-heejin Date: Fri, 12 Apr 2024 16:05:13 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EB=AA=85=EB=A0=B9=EC=96=B4=EA=B0=80=20?= =?UTF-8?q?=ED=95=9C=20=EB=B2=88=EC=97=90=20=EC=8B=A4=ED=96=89=EB=90=98?= =?UTF-8?q?=EB=8F=84=EB=A1=9D=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/docker-image.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 826928a..a0f3aed 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -65,8 +65,10 @@ jobs: key: ${{ secrets.PRIVATE_KEY }} envs: GITHUB_SHA script: | - ssh -tt -i "${{ secrets.PEM_NAME }}" ${{ secrets.WAS_HOST }}@${{ secrets.WAS_IP }} + ssh -tt -i "${{ secrets.PEM_NAME }}" ${{ secrets.WAS_HOST }}@${{ secrets.WAS_IP }}" << 'EOF' sudo docker ps sudo docker pull ${{ secrets.DOCKER_USERNAME }}/docker-team-b-prod sudo docker run -d -p 8080:8080 ${{ secrets.DOCKER_USERNAME }}/docker-team-b-prod sudo docker image prune -f + exit + EOF