Skip to content

Commit

Permalink
build.yml: Added "--restart=unless-stopped" to the docker run command
Browse files Browse the repository at this point in the history
  • Loading branch information
MasterZydra authored Mar 11, 2024
1 parent 8a1afee commit 88c91ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ jobs:
docker pull ghcr.io/masterzydra/bio-manager:latest
docker stop bioman || true
docker rm bioman || true
docker run -d --name bioman -p 8083:80 --env SSL_MODE=off --env DB_HOST=${{ secrets.IP }} --env DB_USERNAME=root --env DB_PASSWORD='${{ secrets.DB_PASSWORD }}' --env APP_URL=http://${{ secrets.IP }}:8083 ghcr.io/masterzydra/bio-manager:latest
docker run -d --name bioman -p 8083:80 --restart=unless-stopped --env SSL_MODE=off --env DB_HOST=${{ secrets.IP }} --env DB_USERNAME=root --env DB_PASSWORD='${{ secrets.DB_PASSWORD }}' --env APP_URL=http://${{ secrets.IP }}:8083 ghcr.io/masterzydra/bio-manager:latest
docker image prune -f
- name: Run Container (production)
Expand All @@ -122,5 +122,5 @@ jobs:
docker pull ghcr.io/masterzydra/bio-manager:${{ github.ref_name }}
docker stop bioman-prod || true
docker rm bioman-prod || true
docker run -d --name bioman-prod -p 8084:80 --env SSL_MODE=off --env DB_HOST=${{ secrets.IP }} --env DB_DATABASE=bioman-prod --env DB_USERNAME=root --env DB_PASSWORD='${{ secrets.DB_PASSWORD }}' --env APP_URL=http://${{ secrets.IP }}:8084 ghcr.io/masterzydra/bio-manager:${{ github.ref_name }}
docker run -d --name bioman-prod -p 8084:80 --restart=unless-stopped --env SSL_MODE=off --env DB_HOST=${{ secrets.IP }} --env DB_DATABASE=bioman-prod --env DB_USERNAME=root --env DB_PASSWORD='${{ secrets.DB_PASSWORD }}' --env APP_URL=http://${{ secrets.IP }}:8084 ghcr.io/masterzydra/bio-manager:${{ github.ref_name }}
docker image prune -f

0 comments on commit 88c91ae

Please sign in to comment.