From 33a0c3d68ffabc758db784b76ffc262cceed927a Mon Sep 17 00:00:00 2001 From: PaletiKrishnasai Date: Sun, 17 Dec 2023 01:48:23 -0500 Subject: [PATCH] CI CD working --- .github/workflows/main.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index b0fb238..2c93300 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -85,9 +85,9 @@ jobs: docker pull ${{secrets.AWS_ECR_LOGIN_URI}}/${{ secrets.ECR_REPOSITORY_NAME }}:latest ### Uncomment the following lines if we have to push with the latest image and version. will stop the container and restart it. - # - name: Stop and remove container if running - # run: | - # docker ps -q --filter "name=texts" | grep -q . && docker stop texts && docker rm -fv texts + - name: Stop and remove container if running + run: | + docker ps -q --filter "name=texts" | grep -q . && docker stop texts && docker rm -fv texts - name: Run Docker Image to serve users run: |