From c07c65a473bbe0475e782a61e39e2b4b09f3ff13 Mon Sep 17 00:00:00 2001 From: dldmsql Date: Tue, 7 Feb 2023 22:58:26 +0900 Subject: [PATCH] =?UTF-8?q?#34=20PROD2=20=EC=84=9C=EB=B2=84=20=EB=B0=B0?= =?UTF-8?q?=ED=8F=AC=20=EC=8B=9C=20=EB=A1=9C=EA=B7=B8=EC=9D=B8=20=EC=8A=A4?= =?UTF-8?q?=ED=81=AC=EB=A6=BD=ED=8A=B8=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/CD_Prod.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/CD_Prod.yml b/.github/workflows/CD_Prod.yml index dd119c6..bfb5699 100644 --- a/.github/workflows/CD_Prod.yml +++ b/.github/workflows/CD_Prod.yml @@ -64,8 +64,7 @@ jobs: - name: docker build and push run: | docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }} - docker build -f Dockerfile -t myongsik_prod1 . - docker tag myongsik_prod1 ${{ secrets.DOCKER_USERNAME }}/myongsik + docker build -f Dockerfile -t ${{ secrets.DOCKER_USERNAME }}/myongsik . docker push ${{ secrets.DOCKER_USERNAME }}/myongsik # 9) Deploy (PROD1) @@ -90,6 +89,7 @@ jobs: username: ${{ secrets.EC2_USERNAME }} key: ${{ secrets.EC2_KEY }} script: | + docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }} docker stop myongsik_prod2 docker rm myongsik_prod2 sudo docker pull ${{ secrets.DOCKER_USERNAME }}/myongsik