From 017fca50811cccd3813439fb577e8a8c0ff26a6f Mon Sep 17 00:00:00 2001 From: Vishal N Date: Sat, 13 Jan 2024 01:28:31 +0530 Subject: [PATCH] supress errors coming up while removing non existant immage --- .github/workflows/deployment.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deployment.yml b/.github/workflows/deployment.yml index 98d825e..31126e0 100644 --- a/.github/workflows/deployment.yml +++ b/.github/workflows/deployment.yml @@ -26,7 +26,7 @@ jobs: script: | cd ./deploy/${{ github.event.repository.name }} git pull - docker rm --force ${{ github.event.repository.name }}-deploy || true + docker rm --force ${{ github.event.repository.name }}-deploy 2> /dev/null docker build -t ${{ github.event.repository.owner.name }}/${{ github.event.repository.name }}:${{ env.COMMIT_SHORT_SHA }} --quiet . docker run --detach --name ${{ github.event.repository.name }}-deploy ${{ github.event.repository.owner.name }}/${{ github.event.repository.name }}:${{ env.COMMIT_SHORT_SHA }} docker container prune --force && docker image prune --all --force