From 1326391a46862f9ebce748c0eeca836c6927d788 Mon Sep 17 00:00:00 2001 From: ymkim97 Date: Fri, 3 Jan 2025 02:07:26 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20docker-compose=20yml=20=EC=9C=84?= =?UTF-8?q?=EC=B9=98=20env=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/cd-dev.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cd-dev.yml b/.github/workflows/cd-dev.yml index 2242316..aa29cad 100644 --- a/.github/workflows/cd-dev.yml +++ b/.github/workflows/cd-dev.yml @@ -136,7 +136,7 @@ jobs: - name: AWS EC2 Server Deploy uses: appleboy/ssh-action@master env: - COMPOSE: "home/ubuntu/infra/docker-compose-dev.yml" + COMPOSE: "home/ubuntu/tnt/infra/docker-compose-dev.yml" with: envs: COMPOSE host: ${{ secrets.EC2_DEV_HOST }} @@ -144,7 +144,7 @@ jobs: key: ${{ secrets.EC2_DEV_KEY }} port: ${{ secrets.EC2_SSH_PORT }} script: | - docker login -u ${{ secrets.DOCKER_HUB_USERNAME }} -p ${{ secrets.DOCKER_HUB_TOKEN }} + echo "${{ secrets.DOCKER_HUB_TOKEN }}" | docker login -u "${{ secrets.DOCKER_HUB_USERNAME }}" --password-stdin docker-compose -f $COMPOSE down --rmi all docker pull ${{ secrets.DOCKER_HUB_USERNAME }}/${{ secrets.DOCKER_HUB_REPO }} docker-compose -f $COMPOSE up -d