Skip to content

Commit

Permalink
Added volume
Browse files Browse the repository at this point in the history
  • Loading branch information
WhCollar committed Jan 3, 2024
1 parent 6ec9e70 commit 8adeb5e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@ jobs:
key: ${{ secrets.SSH_KEY }}
script: |
docker stop ${{ vars.DOCKER_IMAGE_NAME }} 2> /dev/null || true
docker build -f ./${{ github.event.repository.name }}/Dockerfile -t ${{ vars.DOCKER_IMAGE_NAME }} ./${{ github.event.repository.name }}/
docker run --name ${{ vars.DOCKER_IMAGE_NAME }} -p 5374:80 ${{ vars.DOCKER_IMAGE_NAME }}
docker build -f /root/${{ github.event.repository.name }}/${{ github.event.repository.name }}/Dockerfile -t ${{ vars.DOCKER_IMAGE_NAME }} ./${{ github.event.repository.name }}/
docker run --name ${{ vars.DOCKER_IMAGE_NAME }} -v /root/${{ github.event.repository.name }}/${{ github.event.repository.name }}/wwwroot/:/app/wwwroot -p 5374:80 ${{ vars.DOCKER_IMAGE_NAME }}

0 comments on commit 8adeb5e

Please sign in to comment.