From cc808d5de31c5e332151eb68684c76fb2d3aa3cd Mon Sep 17 00:00:00 2001 From: Vishal N Date: Tue, 16 Jan 2024 17:25: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 3f7908a..a2d1750 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 ${{ 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 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