versioning

package
v0.0.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 7, 2020 License: MIT Imports: 3 Imported by: 0

README

CI Versioning

Running

./ci/print-workspace-status.sh

will yield something like

STABLE_BUILD_GIT_COMMIT e1d23b9c044941fe6e907430bf439822f1bf9fd9
STABLE_BUILD_SCM_STATUS dirty
STABLE_BUILD_SCM_REVISION v0.0.3-2+e1d23b9c044941-dirty
STABLE_BUILD_MAJOR_VERSION 0
STABLE_BUILD_MINOR_VERSION 0+
STABLE_DOCKER_TAG v0.0.3-2_e1d23b9c044941-dirty
STABLE_BUILD_DATE 2020-04-07T14:35:01Z
STABLE_VERSION v0.0.3-2_e1d23b9c044941-dirty
gitCommit e1d23b9c044941fe6e907430bf439822f1bf9fd9
gitTreeState dirty
gitVersion v0.0.3-2+e1d23b9c044941-dirty
gitMajor 0
gitMinor 0+
buildDate 2020-04-07T14:35:01Z

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BinaryVersion added in v0.0.4

func BinaryVersion(version string, buildTime string) string

BinaryVersion returns the default formatted version string for a binary

func GetVersion

func GetVersion() string

GetVersion returns the default formatted version string attached to the current bazel build

func Query

func Query(request VersionInfo) (string, error)

Query returns git versioning info attached to the current bazel build

Types

type VersionInfo

type VersionInfo int

VersionInfo ...

const (
	StableBuildGitCommit VersionInfo = iota
	StableBuildScmStatus
	StableBuildScmRevision
	StableBuildMajorVersion
	StableBuildMinorVersion
	StableDockerTag
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL