From b67f13d094199923faa0d031a5b9991ff5d6de38 Mon Sep 17 00:00:00 2001 From: yu-heejin Date: Fri, 12 Apr 2024 16:24:11 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EC=8A=A4=ED=81=AC=EB=A6=BD=ED=8A=B8=20?= =?UTF-8?q?=EB=AA=85=EB=A0=B9=EC=96=B4=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 | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index f3eec7d..b659fc3 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -65,11 +65,4 @@ jobs: key: ${{ secrets.PRIVATE_KEY }} envs: GITHUB_SHA script: | - 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 - exit - EOF + ssh -i ~/.ssh/id_rsa -o StrictHostKeyChecking=no ubuntu@${{ secrets.EC2_HOST }} 'bash /home/ubuntu/deploy.sh'