- Added automatic versioning based on git tags using semantic-release in Gitea Actions. - Introduced new API endpoints `GET /version` and `GET /v1/version` to expose build metadata. - Updated Docker build process to include version and build time information in Go binaries. - Enhanced documentation with details on release processes and versioning guidelines. - Integrated version display in the web application for better user visibility.
40 lines
906 B
Bash
40 lines
906 B
Bash
#!/usr/bin/env sh
|
|
# Writes docker-bake.override.hcl for CI (buildx without --var support).
|
|
set -eu
|
|
OUT="${1:-docker-bake.override.hcl}"
|
|
REGISTRY="${REGISTRY:?REGISTRY required}"
|
|
IMAGE_TAG="${IMAGE_TAG:-latest}"
|
|
SHORT_SHA="${SHORT_SHA:-dev}"
|
|
SHA_FULL="${SHA_FULL:-}"
|
|
VERSION="${VERSION:-dev}"
|
|
BUILD_TIME="${BUILD_TIME:-}"
|
|
CACHE_REF_GO="${CACHE_REF_GO:-}"
|
|
CACHE_REF_WEB="${CACHE_REF_WEB:-}"
|
|
cat >"$OUT" <<EOF
|
|
# Generated by deploy/docker/write-bake-override.sh — do not commit.
|
|
variable "REGISTRY" {
|
|
default = "${REGISTRY}"
|
|
}
|
|
variable "IMAGE_TAG" {
|
|
default = "${IMAGE_TAG}"
|
|
}
|
|
variable "SHORT_SHA" {
|
|
default = "${SHORT_SHA}"
|
|
}
|
|
variable "SHA_FULL" {
|
|
default = "${SHA_FULL}"
|
|
}
|
|
variable "VERSION" {
|
|
default = "${VERSION}"
|
|
}
|
|
variable "BUILD_TIME" {
|
|
default = "${BUILD_TIME}"
|
|
}
|
|
variable "CACHE_REF_GO" {
|
|
default = "${CACHE_REF_GO}"
|
|
}
|
|
variable "CACHE_REF_WEB" {
|
|
default = "${CACHE_REF_WEB}"
|
|
}
|
|
EOF
|