Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
fix: CD ECR 로그인 job 순서 변경
  • Loading branch information
yubinquitous authored Oct 23, 2023
1 parent 05a1261 commit 9cf8104
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit 9cf8104

Please sign in to comment.