This repo contains a Dockerfile and a Bun script that will...
- Build
@gi-tcg/serverfrom source repo; - When above repo has update on default
mainbranch, graceful pull latest version and restart the server.
The "automatic update" is triggered by GitHub Webhooks. Should set a webhook POST to http://{YOUR_HOST}:{WEBHOOK_PORT}/webhook.
Below environment variable MUST be provided when launching the container:
GH_CLIENT_IDandGH_CLIENT_SECRETto complet OAuth workflow;WEBHOOK_SECRETthat configured in the GitHub Webhook settings.
Below environment variable could be used to configure the container's behavior:
PORTThe App server's running port, defaults to 4000WEB_CLINET_BASE_PATHthe "Base" path of the App, defaults to "/"WEBHOOK_PORTThe Webhook's listening port, defaults to 3000JWT_SECRETA random string for encrypting JWTUPDATED_NOTIFY_URLon update send a POST to this URL