From ffed130853b671f9527db2d3afb976078fe8a50b Mon Sep 17 00:00:00 2001 From: Vishal N Date: Tue, 16 Jan 2024 17:21:30 +0530 Subject: [PATCH] update action --- .github/workflows/deployment.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deployment.yml b/.github/workflows/deployment.yml index 9024697..ffa1bb9 100644 --- a/.github/workflows/deployment.yml +++ b/.github/workflows/deployment.yml @@ -27,6 +27,6 @@ jobs: cd ./deploy/${{ github.event.repository.name }} git pull docker rm --force ${{ github.event.repository.name }}-deploy 2> /dev/null - docker build -t $GITHUB_REPOSITORY:${{ env.COMMIT_SHORT_SHA }} --quiet . - docker run --detach --publish 5000:5000 --name ${{ github.event.repository.name }}-deploy $GITHUB_REPOSITORY:${{ env.COMMIT_SHORT_SHA }} + docker build -t "$GITHUB_REPOSITORY":${{ env.COMMIT_SHORT_SHA }} --quiet . + docker run --detach --publish 5000:5000 --name ${{ github.event.repository.name }}-deploy "$GITHUB_REPOSITORY":${{ env.COMMIT_SHORT_SHA }} docker container prune --force && docker image prune --all --force