release

package
v0.20.4 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2026 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Overview

Package release resolves the newest published Miabi platform version.

The CLI releases on its own cadence — a CLI cut months ago still has to install today's Miabi — so the platform version cannot be baked into the binary. It is looked up when needed, and an operator can always state it outright with --version or --image instead.

Index

Constants

View Source
const (
	// VersionsURL is the platform's entry on versions.miabi.io, written by Miabi's release workflow.
	VersionsURL = "https://versions.miabi.io/v1/miabi/latest.json"

	APIEnv = "MIABI_RELEASE_API"
)
View Source
const ReasonSecurity = "security"

ReasonSecurity marks a release published to fix a vulnerability.

Variables

This section is empty.

Functions

func Latest

func Latest(ctx context.Context, userAgent string) (string, error)

Latest returns the newest stable platform version without a leading "v".

func Normalize

func Normalize(tag string) string

Normalize turns a Git tag into a Docker tag: releases are cut as v1.8.0 and published as 1.8.0. The "v" is stripped only when a digit follows, so a tag like "vnext" is left alone.

Types

type Release added in v0.20.2

type Release struct {
	Version    string
	Reason     string
	ReleaseURL string
}

Release is the newest stable platform release.

func LatestRelease added in v0.20.2

func LatestRelease(ctx context.Context, userAgent string) (Release, error)

LatestRelease returns the newest stable platform release. Prereleases are never returned: an unattended `miabi upgrade` must not walk onto a release candidate.

userAgent identifies the caller honestly. The request says nothing else about the install: no id, no host, no license.

Jump to

Keyboard shortcuts

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