From d219683ca25a6b84ff9494fda7eab2d6151a9b28 Mon Sep 17 00:00:00 2001 From: Vishal N Date: Tue, 16 Jan 2024 17:22:32 +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 ffa1bb9..3f7908a 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 ${{ vars.GITHUB_REPOSITORY }}:${{ env.COMMIT_SHORT_SHA }} --quiet . + docker run --detach --publish 5000:5000 --name ${{ github.event.repository.name }}-deploy ${{ vars.GITHUB_REPOSITORY }}:${{ env.COMMIT_SHORT_SHA }} docker container prune --force && docker image prune --all --force