Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 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}"
|
||||
@@ -56,6 +56,10 @@ types and contracts before changing behavior.
|
||||
|
||||
## 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
|
||||
a change affects shared contracts, application behavior, or maintained
|
||||
documentation examples:
|
||||
|
||||
@@ -41,8 +41,7 @@ License and notices: [CC BY-SA 4.0](licenses/CC-BY-SA-4.0.txt) |
|
||||
## ReleaseKit
|
||||
|
||||
Selected module: `go.maximumdirect.net/releasekit` at `v0.10.0`.
|
||||
Material: `scripts/releasekit` and `.woodpecker/release.yml`, adapted from the
|
||||
adoption guide and tag-delivery example.
|
||||
Material: `scripts/releasekit`, adapted from the adoption guide.
|
||||
|
||||
Copyright (C) 2026 Eric Rakestraw
|
||||
|
||||
|
||||
@@ -2,7 +2,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
|
||||
|
||||
@@ -42,8 +42,8 @@ separate remote read-back gate.
|
||||
|
||||
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
|
||||
separate outcome from source publication; it may run asynchronously in tag CI
|
||||
or locally from the matching tagged source. Signing and additional packaging
|
||||
separate outcome from source publication. The standard workflow delivers locally
|
||||
from the matching tagged source. Signing and additional packaging
|
||||
are not part of the current release workflow.
|
||||
|
||||
## 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
|
||||
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
|
||||
selected Go patch release are sufficient to presume support across that Go
|
||||
series, subject to the declared consumer minimum and concrete evidence of
|
||||
|
||||
@@ -6,16 +6,26 @@ publication and hosted delivery are separate outcomes. The primary branch is
|
||||
|
||||
## Prepare
|
||||
|
||||
Use Git, a POSIX shell, Go 1.27.0, Git access to `origin`, and ordinary access
|
||||
to private modules. The consumer minimum remains in [go.mod](../go.mod). Prepare
|
||||
the selected toolchain and dependencies separately from offline validation:
|
||||
Use Git, a POSIX shell, a Go installation, Git access to `origin`, and ordinary
|
||||
access to private modules. The consumer minimum remains in [go.mod](../go.mod).
|
||||
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
|
||||
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
|
||||
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
|
||||
`docs/releases/<version>.md` beginning with `# Notarius <version>`, a concise
|
||||
summary, and any compatibility or upgrade guidance. Update current documentation
|
||||
@@ -34,7 +44,7 @@ ReleaseKit:
|
||||
git push origin main
|
||||
```
|
||||
|
||||
## Publish and deliver
|
||||
## Publish source
|
||||
|
||||
From the clean candidate on `main`, run:
|
||||
|
||||
@@ -48,19 +58,23 @@ completes the source release; it does not wait for delivery. The optional
|
||||
`./scripts/releasekit check VERSION` is a diagnostic, not a mandatory
|
||||
preliminary repetition.
|
||||
|
||||
Tag CI uses the committed profile to deliver the note and binary/checksum assets.
|
||||
Provision Woodpecker secret `releasekit_gitea_token` and its Git/module access
|
||||
before relying on this route. Alternatively, from a clean checkout of the
|
||||
matching tag with dependencies prepared, run:
|
||||
## Deliver locally
|
||||
|
||||
After successful source publication, deliver the hosted note, Linux/amd64 binary,
|
||||
and checksum assets from the same clean checkout, while `HEAD` still identifies
|
||||
the published tag's commit:
|
||||
|
||||
```sh
|
||||
./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
|
||||
`RELEASEKIT_GITEA_TOKEN` environment override. Keep the file owner-only and
|
||||
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)
|
||||
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)
|
||||
Reference in New Issue
Block a user