natsukagami / kjudge

A simple system for hosting competitive programming contests.
GNU Affero General Public License v3.0
22 stars 11 forks source link

Better (and automatic) version info embedding #97

Open natsukagami opened 1 year ago

natsukagami commented 1 year ago

We currently rely on changing essentially doc.go to display the production version and compare with the latest version from GitHub to look for updates: https://github.com/natsukagami/kjudge/blob/6dec3df1b06f5d928f65a8b49306a8f4b83ac129/doc.go#L5-L10

This requires a manual commit for every release (as I have forgotten to do in 0.7.5). Let's look for a way to automate this.

Perhaps something like debug.BuildInfo or https://github.com/docker/metadata-action (to extract and inject metadata during CI builds) would help.