Skip to content

genius-invokation/server-continuous-delivery

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@gi-tcg/server Continuous Delivery

This repo contains a Dockerfile and a Bun script that will...

  • Build @gi-tcg/server from source repo;
  • When above repo has update on default main branch, 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_ID and GH_CLIENT_SECRET to complet OAuth workflow;
  • WEBHOOK_SECRET that configured in the GitHub Webhook settings.

Below environment variable could be used to configure the container's behavior:

  • PORT The App server's running port, defaults to 4000
  • WEB_CLINET_BASE_PATH the "Base" path of the App, defaults to "/"
  • WEBHOOK_PORT The Webhook's listening port, defaults to 3000
  • JWT_SECRET A random string for encrypting JWT
  • UPDATED_NOTIFY_URL on update send a POST to this URL

About

A Docker image that will continuous deliver PvP Server

Resources

Stars

Watchers

Forks

Packages