Skip to content

Commit

Permalink
Updated deploy action
Browse files Browse the repository at this point in the history
  • Loading branch information
WhCollar committed Jan 3, 2024
1 parent 4e66449 commit e5a7fbd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
username: ${{ secrets.SSH_USER }}
key: ${{ secrets.SSH_KEY }}
script: |
cd ${{ github.event.repository.name }}
docker stop ${{ github.event.repository.name }} 2> /dev/null || true
docker build ./SnailBee.SMS/ -t ${{ github.event.repository.name }}
docker run --name ${{ github.event.repository.name }} -p 5374:80 ${{ github.event.repository.name }}
cd ${{ env.DOCKER_IMAGE_NAME }}
docker stop ${{ env.DOCKER_IMAGE_NAME }} 2> /dev/null || true
docker build ./${{ github.event.repository.name }}/ -t ${{ env.DOCKER_IMAGE_NAME }}
docker run --name ${{ env.DOCKER_IMAGE_NAME }} -p 5374:80 ${{ env.DOCKER_IMAGE_NAME }}

0 comments on commit e5a7fbd

Please sign in to comment.