Files
inbuxa-installer/internal/release/release.go
T
jcoffey-dev e3e6fdb071
ci / test (pull_request) Successful in 53s
Install server 2026.10.15
SMTP submission can send as a shared mailbox, or a locked account, with a send-as delegation (inbuxa-server #199). The README's download example names the release this goes out in, v2026.10.15.2.
2026-10-15 09:13:46 -07:00

63 lines
2.7 KiB
Go

// SPDX-FileCopyrightText: 2026 Coffey Labs LLC
// SPDX-License-Identifier: AGPL-3.0-or-later
// Package release is which version of the mail server this installer puts on
// a machine, as an image or as a binary, and what that binary must hash to.
//
// One version for both shapes, so a server moved from a container to the host
// is the same program, and the plan, the image tag and the download cannot
// name three different releases.
package release
import "fmt"
// ServerVersion is the inbuxa-server release this installer installs.
const ServerVersion = "2026.10.15"
// ServerImage is that release as a container image.
const ServerImage = "registry.coffeylabs.org/inbuxa/inbuxa-server:" + ServerVersion
// ServerSHA256 is the SHA-256 of each architecture's release tarball, copied
// from the release's SHA256SUMS when the version was moved and checked here
// rather than fetched beside the download: a checksum that arrives with the
// file only proves the file arrived.
var ServerSHA256 = map[string]string{
"amd64": "4f794c187a823d789556aa3325aa39c878bec07a905f28d75296910162a1d7a7",
"arm64": "67dcc41e203c36fac0e61f69517ba44055635e6987a0548835ea8ef460b5b692",
}
// ServerTarball is where the release's tarball for an architecture is.
func ServerTarball(arch string) string {
return fmt.Sprintf("https://git.coffeylabs.org/inbuxa/inbuxa-server/releases/download/v%s/inbuxa-linux-%s.tar.gz",
ServerVersion, arch)
}
// The console and the webmail as files, for host installs. Their releases
// attach these since inbuxa-admin #106 and inbuxa-webmail #68; a version
// with an empty checksum has none to install, and the host shape is
// unavailable until one does. INBUXA_CONSOLE_TARBALL and
// INBUXA_WEBMAIL_TARBALL name a local file instead, for testing.
const (
ConsoleVersion = "2026.10.14"
ConsoleSHA256 = "5f8a1448cc254adbacaa601f3b01763ac401bc24e1f307f3969404392c046647"
WebmailVersion = "2026.10.13-g1299756" // its tag is inbuxa-v<this>
)
// WebmailSHA256 is the SHA-256 of each architecture's webmail tarball.
var WebmailSHA256 = map[string]string{
"amd64": "cf579536ef19802ccd3b43b3a5fe0f5176e42f86400ca798b74b3355da9fb1d7",
"arm64": "df141d0b0e3cdf646899971c6c2997a01fae8cf8e0c83e26e5caebc89169e8d3",
}
// ConsoleTarball is where the console's release tarball is.
func ConsoleTarball() string {
return fmt.Sprintf("https://git.coffeylabs.org/inbuxa/inbuxa-admin/releases/download/v%s/inbuxa-admin.tar.gz", ConsoleVersion)
}
// WebmailTarball is where the webmail's release tarball for an
// architecture is. Its tags are inbuxa-v<version>.
func WebmailTarball(arch string) string {
return fmt.Sprintf("https://git.coffeylabs.org/inbuxa/inbuxa-webmail/releases/download/inbuxa-v%s/inbuxa-webmail-linux-%s.tar.gz",
WebmailVersion, arch)
}