From c8cb117a934820f65169d19ceb275f3946e27f14 Mon Sep 17 00:00:00 2001 From: Sejeong Kim Date: Thu, 24 Oct 2024 22:51:52 +0900 Subject: [PATCH] =?UTF-8?q?chore:=20=EA=B2=BD=EB=A1=9C=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/aws-cicd.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/aws-cicd.yml b/.github/workflows/aws-cicd.yml index 772cb9b2..de308123 100644 --- a/.github/workflows/aws-cicd.yml +++ b/.github/workflows/aws-cicd.yml @@ -121,7 +121,7 @@ jobs: key: ${{secrets.AWS_INSTANCE_PEM}} port: 22 source: ./${{ env.MODULE }}/infra/aws/* - target: "/home/ubuntu/${{ env.MODULE }}/infra/aws" + target: "/home/ubuntu - name: Deploy with Docker Compose uses: appleboy/ssh-action@v1.0.3 @@ -133,7 +133,7 @@ jobs: script: | sudo apt install docker-ce sudo docker login --username ${{secrets.DOCKER_EMAIL}} --password ${{secrets.DOCKER_PASSWORD}} - cd /home/${{ env.MODULE }}/infra/${{ env.DEPLOY_TARGET }} + cd /home/ubuntu/${{ env.MODULE }}/infra/${{ env.DEPLOY_TARGET }} echo "${{ secrets.APPLICATION_SECRET_PROPERTIES }}" > application-secret.properties sudo docker-compose pull && sudo docker-compose up -d docker image prune -a -f \ No newline at end of file