diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index d7c8aa0..7baaf93 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -82,13 +82,13 @@ jobs: uses: aws-actions/amazon-ecr-login@v1 - # - name: Pull latest images - # run: | - # docker pull ${{secrets.AWS_ECR_LOGIN_URI}}/${{ secrets.ECR_REPOSITORY_NAME }}:latest + - name: Pull latest images + run: | + docker pull ${{secrets.AWS_ECR_LOGIN_URI}}/${{ secrets.ECR_REPOSITORY_NAME }}:latest - # - name: Stop and remove container if running - # run: | - # docker ps -q --filter "name=catdog" | grep -q . && docker stop catdog && docker rm -fv catdog + - name: Stop and remove container if running + run: | + docker ps -q --filter "name=catdog" | grep -q . && docker stop catdog && docker rm -fv catdog - name: Run Docker Image to serve users run: |