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 5d333a3 commit e1a8a1f
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_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 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

0 comments on commit e1a8a1f

Please sign in to comment.