Skip to content

Commit

Permalink
update action
Browse files Browse the repository at this point in the history
  • Loading branch information
vishalnandagopal committed Jan 16, 2024
1 parent 92e8337 commit 5d333a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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.event.repository.owner.name }}/${{ github.event.repository.name }}:${{ env.COMMIT_SHORT_SHA }} --quiet .
docker run --detach --publish 5000:5000 --name ${{ github.event.repository.name }}-deploy ${{ github.event.repository.owner.name }}/${{ github.event.repository.name }}:${{ 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 ${{ env.GITHUB_REPOSITORY }}:${{ env.COMMIT_SHORT_SHA }}
docker container prune --force && docker image prune --all --force

0 comments on commit 5d333a3

Please sign in to comment.