- Source of truth:
VERSION(semver withoutv, e.g.0.1.0) - Git tags:
v0.1.0,v1.2.3, … - Injected at build via
-ldflagsintointernal/version - Runtime:
./server -versionorGET /
make docker-build
# or with explicit version
make docker-build VERSION=v0.1.0Push a semver tag to trigger .github/workflows/release.yml:
git tag v0.1.0
git push origin v0.1.0| Secret | Description |
|---|---|
DOCKERHUB_USERNAME |
Docker Hub user or org |
DOCKERHUB_TOKEN |
Docker Hub access token (create) |
For tag v1.2.3, pushes to {DOCKERHUB_USERNAME}/lowcode-database:
1.2.31.21latestv1.2.3
Pull example:
docker pull YOUR_USER/lowcode-database:1.2.3Optional: set repository variable IMAGE_NAME in workflow env to change image name (default lowcode-database).