docker-multi-arch-builder/internal/version/prod.go
RouxAntoine 07424811ce
Some checks are pending
Main / build (push) Waiting to run
use TOKEN_REGISTRY variable
2024-08-31 18:33:40 +02:00

28 lines
495 B
Go

//go:build prod
package version
import (
"fmt"
version "github.com/hashicorp/go-version"
)
// Version ...
var Version = "1.0.0"
// Prerelease such as "dev" (in development), "beta", "rc1", etc.
var Prerelease = "prod"
// SemVer management
var SemVer *version.Version
func init() {
SemVer = version.Must(version.NewSemver(fmt.Sprintf("%s-%s", Version, Prerelease)))
}
// String returns the complete version string, including prerelease
func String() string {
return SemVer.String()
}