INNER CODE UNIT · Go
main
projectcontour/contour · hack/actions/bump-envoy-version/main.go:52
func main() {
log.SetFormatter(&logrus.TextFormatter{ForceColors: true})
currentVersion := getCurrentEnvoyVersion()
// releaseTrack is the Envoy major or minor version to track, e.g. "v1.36".
var releaseTrack string
if len(os.Args) < 2 {
// If no argument is given, derive the release track from the current minor version.
releaseTrack = currentVersion[:strings.LastIndex(currentVersion, ".")]
} else {
releaseTrack = os.Args[1]
}
log.Infof("Current Envoy version: %s", currentVersion)
// Strip "distroless" prefix for GitHub API lookup but use it for file updates.
var imagePrefix string