From 9cf8104b018144191cfb17ed3746531fbd5432d1 Mon Sep 17 00:00:00 2001 From: yubinquitous <65652094+yubinquitous@users.noreply.github.com> Date: Mon, 23 Oct 2023 15:16:57 +0900 Subject: [PATCH] Update main.yml MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fix: CD ECR 로그인 job 순서 변경 --- .github/workflows/main.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 8f261a1..c8fa34b 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -74,15 +74,15 @@ jobs: # username: ${{ secrets.AWS_USERNAME }} # key: ${{ secrets.AWS_PRIVATE_KEY }} - - name: Login to Amazon ECR - id: login-ecr - uses: aws-actions/amazon-ecr-login@v1 - - name: Stop and Delete container run: | cd ~/api-gateway docker-compose down --rmi all + - name: Login to Amazon ECR + id: login-ecr + uses: aws-actions/amazon-ecr-login@v1 + - name: Pull image from Amazon ECR run: | docker pull ${{ env.ECR_REGISTRY }}/${{ env.ECR_REPOSITORY }}:${{ env.IMAGE_TAG }}