Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 10b54107f3 | |||
| 85ab692220 | |||
| 3eccb8857e | |||
| 9a63e4f8e6 | |||
| 13e1ce5d86 |
@@ -1,55 +0,0 @@
|
|||||||
matrix:
|
|
||||||
include:
|
|
||||||
- GO_IMAGE: golang:1.27.0
|
|
||||||
|
|
||||||
when:
|
|
||||||
- event: tag
|
|
||||||
ref: refs/tags/v*
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: deliver
|
|
||||||
image: ${GO_IMAGE}
|
|
||||||
environment:
|
|
||||||
RELEASEKIT_GITEA_TOKEN:
|
|
||||||
from_secret: releasekit_gitea_token
|
|
||||||
commands:
|
|
||||||
- |
|
|
||||||
set -eu
|
|
||||||
test -n "$${CI_COMMIT_TAG}"
|
|
||||||
test -n "$${CI_COMMIT_SHA}"
|
|
||||||
git check-ref-format "refs/tags/$${CI_COMMIT_TAG}"
|
|
||||||
git fetch origin "refs/tags/$${CI_COMMIT_TAG}:refs/tags/$${CI_COMMIT_TAG}"
|
|
||||||
tag_commit=$(git rev-parse --verify "refs/tags/$${CI_COMMIT_TAG}^{commit}")
|
|
||||||
expected_commit=$(git rev-parse --verify "$${CI_COMMIT_SHA}^{commit}")
|
|
||||||
if [ "$${tag_commit}" != "$${expected_commit}" ]; then
|
|
||||||
printf 'Tag %s resolves to commit %s; event %s resolves to commit %s\n' \
|
|
||||||
"$${CI_COMMIT_TAG}" "$${tag_commit}" "$${CI_COMMIT_SHA}" "$${expected_commit}" >&2
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
git checkout --detach "$${tag_commit}"
|
|
||||||
test "$(git rev-parse HEAD | tr '[:upper:]' '[:lower:]')" = "$${expected_commit}"
|
|
||||||
test -z "$(git status --porcelain --untracked-files=all)"
|
|
||||||
|
|
||||||
bootstrap_dir=$(mktemp -d "$${CI_WORKSPACE%/*}/.releasekit-bootstrap.XXXXXX")
|
|
||||||
trap 'rm -rf "$${bootstrap_dir}"' EXIT
|
|
||||||
cp go.mod "$${bootstrap_dir}/releasekit.mod"
|
|
||||||
if [ -f go.sum ]; then
|
|
||||||
cp go.sum "$${bootstrap_dir}/releasekit.sum"
|
|
||||||
else
|
|
||||||
: > "$${bootstrap_dir}/releasekit.sum"
|
|
||||||
fi
|
|
||||||
|
|
||||||
export GOWORK=off
|
|
||||||
export GOTOOLCHAIN=local
|
|
||||||
releasekit_host_os=$(go env GOHOSTOS) || exit $?
|
|
||||||
releasekit_host_arch=$(go env GOHOSTARCH) || exit $?
|
|
||||||
export GOOS="$${releasekit_host_os}" GOARCH="$${releasekit_host_arch}"
|
|
||||||
releasekit_module=go.maximumdirect.net/releasekit
|
|
||||||
go list -mod=mod -modfile="$${bootstrap_dir}/releasekit.mod" -m "$${releasekit_module}"
|
|
||||||
go mod edit -modfile="$${bootstrap_dir}/releasekit.mod" -tool="$${releasekit_module}/cmd/releasekit"
|
|
||||||
go list -mod=mod -modfile="$${bootstrap_dir}/releasekit.mod" -deps "$${releasekit_module}/cmd/releasekit" > /dev/null
|
|
||||||
go tool -modfile="$${bootstrap_dir}/releasekit.mod" "$${releasekit_module}/cmd/releasekit" ci-deliver \
|
|
||||||
--repo "$${CI_WORKSPACE}" \
|
|
||||||
--prepared \
|
|
||||||
--commit "$${expected_commit}" \
|
|
||||||
"$${CI_COMMIT_TAG}"
|
|
||||||
@@ -32,11 +32,13 @@ resource customization, and optional source auxiliaries. See the
|
|||||||
## Install
|
## Install
|
||||||
|
|
||||||
For releases that include binary assets, download
|
For releases that include binary assets, download
|
||||||
`notarius-<version>-linux-amd64` and `SHA256SUMS` from the corresponding
|
the binary matching your Linux architecture (`notarius-<version>-linux-amd64`
|
||||||
|
or `notarius-<version>-linux-arm64`) and `SHA256SUMS` from the corresponding
|
||||||
[hosted release](https://forge.maximumdirect.net/eric/notarius/releases), verify
|
[hosted release](https://forge.maximumdirect.net/eric/notarius/releases), verify
|
||||||
the binary against the checksum manifest, and install it on your `PATH`.
|
the binary against the checksum manifest, and install it on your `PATH`.
|
||||||
Replace `<version>` with the chosen stable tag (for example,
|
Replace `<version>` with the chosen stable tag (for example,
|
||||||
`vMAJOR.MINOR.PATCH`). Historical releases may not include binary assets.
|
`vMAJOR.MINOR.PATCH`). Available architectures depend on the selected release;
|
||||||
|
historical releases may not include binary assets.
|
||||||
|
|
||||||
### Build From Source
|
### Build From Source
|
||||||
|
|
||||||
|
|||||||
@@ -56,6 +56,10 @@ types and contracts before changing behavior.
|
|||||||
|
|
||||||
## Validation
|
## Validation
|
||||||
|
|
||||||
|
Use the testing toolchain selected by the
|
||||||
|
[release policy](policy/release.md#consumer-minimum-and-release-toolchain).
|
||||||
|
The [release runbook](release.md#prepare) provides native Go selection commands.
|
||||||
|
|
||||||
Use focused package tests while iterating. Run the repository-wide checks when
|
Use focused package tests while iterating. Run the repository-wide checks when
|
||||||
a change affects shared contracts, application behavior, or maintained
|
a change affects shared contracts, application behavior, or maintained
|
||||||
documentation examples:
|
documentation examples:
|
||||||
|
|||||||
@@ -41,8 +41,7 @@ License and notices: [CC BY-SA 4.0](licenses/CC-BY-SA-4.0.txt) |
|
|||||||
## ReleaseKit
|
## ReleaseKit
|
||||||
|
|
||||||
Selected module: `go.maximumdirect.net/releasekit` at `v0.10.0`.
|
Selected module: `go.maximumdirect.net/releasekit` at `v0.10.0`.
|
||||||
Material: `scripts/releasekit` and `.woodpecker/release.yml`, adapted from the
|
Material: `scripts/releasekit`, adapted from the adoption guide.
|
||||||
adoption guide and tag-delivery example.
|
|
||||||
|
|
||||||
Copyright (C) 2026 Eric Rakestraw
|
Copyright (C) 2026 Eric Rakestraw
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
**Base Policy Version:** 1.7
|
**Base Policy Version:** 1.7
|
||||||
|
|
||||||
**Last Updated**: 2026-11-24
|
**Last Updated**: 2026-12-04
|
||||||
|
|
||||||
**Upstream Source**: https://gitea.maximumdirect.net/eric/policy/src/commit/593c9b52273c5c879785ae9e995d21026df467b4/docs/policy/release.md
|
**Upstream Source**: https://gitea.maximumdirect.net/eric/policy/src/commit/593c9b52273c5c879785ae9e995d21026df467b4/docs/policy/release.md
|
||||||
|
|
||||||
@@ -41,10 +41,10 @@ before declaring success or retrying; successful pushes do not require a
|
|||||||
separate remote read-back gate.
|
separate remote read-back gate.
|
||||||
|
|
||||||
Deliver the checked-in note as a hosted release page with the selected
|
Deliver the checked-in note as a hosted release page with the selected
|
||||||
Linux/amd64 binary and native checksum assets. Delivery is required but has a
|
Linux/amd64 and Linux/arm64 binaries and native checksum assets. Delivery is
|
||||||
separate outcome from source publication; it may run asynchronously in tag CI
|
required but has a separate outcome from source publication. The standard
|
||||||
or locally from the matching tagged source. Signing and additional packaging
|
workflow delivers locally from the matching tagged source. Signing and additional
|
||||||
are not part of the current release workflow.
|
packaging are not part of the current release workflow.
|
||||||
|
|
||||||
## Versioning And Compatibility
|
## Versioning And Compatibility
|
||||||
|
|
||||||
@@ -91,6 +91,12 @@ series as the consumer minimum, such as `go 1.26.0`. Use a higher patch minimum
|
|||||||
when a dependency or an identified correctness fix requires it, and document
|
when a dependency or an identified correctness fix requires it, and document
|
||||||
the reason.
|
the reason.
|
||||||
|
|
||||||
|
For Notarius, the consumer minimum remains the initial `.0` release of the
|
||||||
|
selected Go minor series. Use the newest available stable patch in that same
|
||||||
|
series for testing and release builds. Resolve the patch during release
|
||||||
|
preparation and use that toolchain consistently for candidate validation and
|
||||||
|
delivery builds.
|
||||||
|
|
||||||
For release-policy purposes, successful build and release validation on the
|
For release-policy purposes, successful build and release validation on the
|
||||||
selected Go patch release are sufficient to presume support across that Go
|
selected Go patch release are sufficient to presume support across that Go
|
||||||
series, subject to the declared consumer minimum and concrete evidence of
|
series, subject to the declared consumer minimum and concrete evidence of
|
||||||
@@ -174,14 +180,15 @@ Do not add routine confirmations for checks the command can perform itself.
|
|||||||
### Notarius Gate Selection
|
### Notarius Gate Selection
|
||||||
|
|
||||||
Run the native default offline Go suite once, build `cmd/notarius` for the
|
Run the native default offline Go suite once, build `cmd/notarius` for the
|
||||||
selected Linux/amd64 distribution target, and verify the native executable's
|
selected Linux/amd64 and Linux/arm64 distribution targets, and verify the native
|
||||||
injected version. ReleaseKit performs the version check on a host executable,
|
executable's injected version. ReleaseKit performs the version check on a host
|
||||||
building a temporary native executable when the distribution target differs.
|
executable, building a temporary native executable when needed. Cross-built
|
||||||
|
binaries do not require execution on target hardware.
|
||||||
Candidate build products are temporary; delivery builds from tagged source.
|
Candidate build products are temporary; delivery builds from tagged source.
|
||||||
Use `GOWORK=off` so a sibling checkout cannot substitute for declared dependencies.
|
Use `GOWORK=off` so a sibling checkout cannot substitute for declared dependencies.
|
||||||
|
|
||||||
Race tests, standalone vet, formatting/whitespace checks, module tidy audits,
|
Race tests, standalone vet, formatting/whitespace checks, module tidy audits,
|
||||||
standalone example validation, and Linux/Darwin cross-builds remain useful
|
standalone example validation, and additional cross-builds remain useful
|
||||||
change-specific development checks, not mandatory release gates. Default tests
|
change-specific development checks, not mandatory release gates. Default tests
|
||||||
already cover maintained examples. No broader binary distribution matrix or
|
already cover maintained examples. No broader binary distribution matrix or
|
||||||
platform hardware prerequisites are added.
|
platform hardware prerequisites are added.
|
||||||
@@ -240,7 +247,7 @@ identify:
|
|||||||
remote;
|
remote;
|
||||||
2. version and release-note preparation;
|
2. version and release-note preparation;
|
||||||
3. one publication command with its selected local checks and automated guards;
|
3. one publication command with its selected local checks and automated guards;
|
||||||
4. hosted delivery, required build target, and automation responsibilities;
|
4. hosted delivery, required build targets, and automation responsibilities;
|
||||||
5. separate source-publication and delivery outcomes; and
|
5. separate source-publication and delivery outcomes; and
|
||||||
6. publication and delivery failure recovery.
|
6. publication and delivery failure recovery.
|
||||||
|
|
||||||
|
|||||||
@@ -6,16 +6,26 @@ publication and hosted delivery are separate outcomes. The primary branch is
|
|||||||
|
|
||||||
## Prepare
|
## Prepare
|
||||||
|
|
||||||
Use Git, a POSIX shell, Go 1.27.0, Git access to `origin`, and ordinary access
|
Use Git, a POSIX shell, a Go installation, Git access to `origin`, and ordinary
|
||||||
to private modules. The consumer minimum remains in [go.mod](../go.mod). Prepare
|
access to private modules. The consumer minimum remains in [go.mod](../go.mod).
|
||||||
the selected toolchain and dependencies separately from offline validation:
|
Select the newest stable patch in its current minor series, Go 1.27, for testing
|
||||||
|
and release builds. Resolve it afresh when preparing each release rather than
|
||||||
|
pinning the consumer minimum or relying on whichever patch is installed locally.
|
||||||
|
Prepare the selected toolchain and dependencies separately from offline validation:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
export GOTOOLCHAIN=go1.27.0
|
export GOWORK=off
|
||||||
|
notarius_release_go=$(GOTOOLCHAIN=local go list -m -f '{{.Version}}' go@1.27)
|
||||||
|
export GOTOOLCHAIN="go${notarius_release_go}"
|
||||||
go version
|
go version
|
||||||
GOWORK=off go mod download
|
go mod download
|
||||||
```
|
```
|
||||||
|
|
||||||
|
If version lookup fails, resolve that failure before proceeding. Keep this
|
||||||
|
environment for validation, publication, and delivery. The native Go version
|
||||||
|
query selects the patch without changing `go.mod` or `go.sum`; see
|
||||||
|
[Go toolchain selection](https://go.dev/doc/toolchain).
|
||||||
|
|
||||||
Choose an unused stable version under the policy's compatibility rules. Add
|
Choose an unused stable version under the policy's compatibility rules. Add
|
||||||
`docs/releases/<version>.md` beginning with `# Notarius <version>`, a concise
|
`docs/releases/<version>.md` beginning with `# Notarius <version>`, a concise
|
||||||
summary, and any compatibility or upgrade guidance. Update current documentation
|
summary, and any compatibility or upgrade guidance. Update current documentation
|
||||||
@@ -34,7 +44,7 @@ ReleaseKit:
|
|||||||
git push origin main
|
git push origin main
|
||||||
```
|
```
|
||||||
|
|
||||||
## Publish and deliver
|
## Publish source
|
||||||
|
|
||||||
From the clean candidate on `main`, run:
|
From the clean candidate on `main`, run:
|
||||||
|
|
||||||
@@ -42,25 +52,29 @@ From the clean candidate on `main`, run:
|
|||||||
./scripts/releasekit publish vMAJOR.MINOR.PATCH
|
./scripts/releasekit publish vMAJOR.MINOR.PATCH
|
||||||
```
|
```
|
||||||
|
|
||||||
ReleaseKit validates the candidate once, checks the selected Linux/amd64 build
|
ReleaseKit validates the candidate once, checks the Linux/amd64 and Linux/arm64
|
||||||
and native version, and publishes the annotated tag. A confirmed tag publication
|
builds and native version, and publishes the annotated tag. A confirmed tag
|
||||||
completes the source release; it does not wait for delivery. The optional
|
publication completes the source release; it does not wait for delivery. The
|
||||||
`./scripts/releasekit check VERSION` is a diagnostic, not a mandatory
|
optional `./scripts/releasekit check VERSION` is a diagnostic, not a mandatory
|
||||||
preliminary repetition.
|
preliminary repetition.
|
||||||
|
|
||||||
Tag CI uses the committed profile to deliver the note and binary/checksum assets.
|
## Deliver locally
|
||||||
Provision Woodpecker secret `releasekit_gitea_token` and its Git/module access
|
|
||||||
before relying on this route. Alternatively, from a clean checkout of the
|
After successful source publication, deliver the hosted note, Linux/amd64 and
|
||||||
matching tag with dependencies prepared, run:
|
Linux/arm64 binaries, and checksum assets from the same clean checkout, while
|
||||||
|
`HEAD` still identifies the published tag's commit:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
./scripts/releasekit deliver vMAJOR.MINOR.PATCH
|
./scripts/releasekit deliver vMAJOR.MINOR.PATCH
|
||||||
```
|
```
|
||||||
|
|
||||||
Use one delivery route as appropriate, not both routinely. Local delivery uses
|
Local delivery is the standard workflow; no CI job performs delivery. It uses
|
||||||
the ignored `.releasekit/gitea-token` file or a nonblank
|
the ignored `.releasekit/gitea-token` file or a nonblank
|
||||||
`RELEASEKIT_GITEA_TOKEN` environment override. Keep the file owner-only and
|
`RELEASEKIT_GITEA_TOKEN` environment override. Keep the file owner-only and
|
||||||
never display its contents. Git publication uses Git credentials, not this token.
|
never display its contents. Git publication uses Git credentials, not this token.
|
||||||
|
When resuming delivery later, use a clean checkout of the matching tag and prepare
|
||||||
|
the toolchain and dependencies as above. Delivery does not repeat the publication
|
||||||
|
test suite or publish another tag.
|
||||||
See the [delivery guide](https://forge.maximumdirect.net/base-layer/releasekit/src/tag/v0.10.0/docs/consumers/delivery.md)
|
See the [delivery guide](https://forge.maximumdirect.net/base-layer/releasekit/src/tag/v0.10.0/docs/consumers/delivery.md)
|
||||||
for credential setup and delivery details.
|
for credential setup and delivery details.
|
||||||
|
|
||||||
|
|||||||
29
docs/releases/v0.10.1.md
Normal file
29
docs/releases/v0.10.1.md
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
# Notarius v0.10.1
|
||||||
|
|
||||||
|
This patch release updates the testing and release-build toolchain selection and
|
||||||
|
makes local hosted delivery the standard release workflow. Application source
|
||||||
|
and dependency versions are unchanged from v0.10.0.
|
||||||
|
|
||||||
|
## Release Builds And Delivery
|
||||||
|
|
||||||
|
- Testing and release builds now select the newest available stable patch in the
|
||||||
|
current Go 1.27 series, rather than pinning Go 1.27.0. Release preparation
|
||||||
|
resolves the patch through Go's native version query and uses the selected
|
||||||
|
toolchain for validation and delivery builds.
|
||||||
|
- Local ReleaseKit delivery publishes the hosted notes, Linux/amd64 executable,
|
||||||
|
and checksums using the maintainer's configured credential. The Woodpecker
|
||||||
|
release job is removed, eliminating the CI-secret provisioning requirement.
|
||||||
|
Source publication and hosted delivery remain separate operations; see the
|
||||||
|
[release runbook](../release.md).
|
||||||
|
|
||||||
|
## Compatibility And Upgrade
|
||||||
|
|
||||||
|
No configuration, CLI, reference-input, or output-artifact migration is required
|
||||||
|
from v0.10.0. The Go consumer minimum remains `1.27.0`; source users are not
|
||||||
|
required to raise their minimum to the patch selected for official builds.
|
||||||
|
|
||||||
|
Users upgrading from an earlier minor release should also follow the
|
||||||
|
[v0.10.0 migration guidance](v0.10.0.md#compatibility-and-upgrade) for shared
|
||||||
|
party and glossary inputs.
|
||||||
|
|
||||||
|
[COPYRIGHT](https://forge.maximumdirect.net/eric/notarius/src/tag/v0.10.1/COPYRIGHT) | [LICENSE](https://forge.maximumdirect.net/eric/notarius/src/tag/v0.10.1/LICENSE) | [ATTRIBUTION](https://forge.maximumdirect.net/eric/notarius/src/tag/v0.10.1/docs/oss/attribution.md)
|
||||||
23
docs/releases/v0.10.2.md
Normal file
23
docs/releases/v0.10.2.md
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
# Notarius v0.10.2
|
||||||
|
|
||||||
|
This patch release adds a Linux/arm64 executable alongside the existing
|
||||||
|
Linux/amd64 build. Application source and dependency versions are unchanged
|
||||||
|
from v0.10.1.
|
||||||
|
|
||||||
|
## Linux Binaries
|
||||||
|
|
||||||
|
Select the executable matching your architecture from the hosted release:
|
||||||
|
|
||||||
|
- `notarius-v0.10.2-linux-amd64`
|
||||||
|
- `notarius-v0.10.2-linux-arm64`
|
||||||
|
|
||||||
|
Both builds use Go 1.27.4 and are covered by the accompanying `SHA256SUMS`
|
||||||
|
manifest. See [installation](../../README.md#install) for usage and the
|
||||||
|
[release runbook](../release.md) for maintainer procedures.
|
||||||
|
|
||||||
|
## Compatibility
|
||||||
|
|
||||||
|
No configuration, CLI, reference-input, or output-artifact migration is required
|
||||||
|
from v0.10.1. The Go consumer minimum remains `1.27.0`.
|
||||||
|
|
||||||
|
[COPYRIGHT](https://forge.maximumdirect.net/eric/notarius/src/tag/v0.10.2/COPYRIGHT) | [LICENSE](https://forge.maximumdirect.net/eric/notarius/src/tag/v0.10.2/LICENSE) | [ATTRIBUTION](https://forge.maximumdirect.net/eric/notarius/src/tag/v0.10.2/docs/oss/attribution.md)
|
||||||
@@ -4,7 +4,7 @@
|
|||||||
"build": {
|
"build": {
|
||||||
"main_package": "./cmd/notarius",
|
"main_package": "./cmd/notarius",
|
||||||
"binary_name": "notarius",
|
"binary_name": "notarius",
|
||||||
"targets": ["linux/amd64"]
|
"targets": ["linux/amd64", "linux/arm64"]
|
||||||
},
|
},
|
||||||
"delivery": {
|
"delivery": {
|
||||||
"forge": "gitea",
|
"forge": "gitea",
|
||||||
|
|||||||
Reference in New Issue
Block a user