test / test (push) Failing after 2s
release / validate (push) Successful in 2s
release / build (linux-amd64, linux-amd64) (push) Successful in 38s
release / build (macos-arm64, macos-arm64) (push) Successful in 45s
release / build (linux-arm64, linux-arm64) (push) Successful in 1m19s
release / release (push) Successful in 15s
Single-binary CLI that injects environment variables from an OpenBao server into the shell via eval "$(envbao)". - Strict permission policy for ~/.envbao (exits 78 if unsafe) - KV v1/v2 engine with auto-detection, pluggable engine registry - Safe quoting for bash/zsh/sh/fish, protected-variable denylist - Audit logging (stderr, private rotating file, syslog); no secrets logged - Gitea pipelines for tests and SemVer-tag releases - PyInstaller spec, docs, BSD-3-Clause licence Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
48 lines
1.8 KiB
Markdown
48 lines
1.8 KiB
Markdown
# Releasing and CI
|
|
|
|
## Pipelines (`.gitea/workflows/`)
|
|
|
|
- **`test.yml`** - on every push and pull request: ruff, ruff format check, strict mypy, pytest with a
|
|
90 % coverage gate, and a PyInstaller build smoke test.
|
|
- **`release.yml`** - on a pushed tag `vMAJOR.MINOR.PATCH[-prerelease][+build]` ([SemVer 2.0.0](https://semver.org)):
|
|
1. `validate` rejects tags that are not valid SemVer (`scripts/version_from_tag.py`).
|
|
2. `build` runs tests then builds `envbao` with PyInstaller on each runner, stamping the version
|
|
from the tag into the binary and checking `envbao --version` matches.
|
|
3. `release` writes `SHA256SUMS` and creates a Gitea release (marked *prerelease* if the tag has a
|
|
`-suffix`) with all binaries attached.
|
|
|
|
## Cutting a release
|
|
|
|
```sh
|
|
git tag v1.0.0 && git push origin v1.0.0
|
|
```
|
|
|
|
Update `CHANGELOG.md` first.
|
|
|
|
## Runner requirements
|
|
|
|
PyInstaller cannot cross-compile, so the pipeline needs one Gitea `act_runner` per target, registered
|
|
with these labels:
|
|
|
|
| Label | Host |
|
|
|-------|------|
|
|
| `linux-amd64` | Linux x86-64 (also runs tests, validation and publishing; needs `curl`, `python3`) |
|
|
| `linux-arm64` | Linux aarch64 |
|
|
| `macos-arm64` | macOS on Apple Silicon (host-mode runner, e.g. `macos-arm64:host`) |
|
|
|
|
Runners need network access to fetch `astral-sh/setup-uv` and Python packages.
|
|
|
|
## Secrets
|
|
|
|
| Secret | Purpose |
|
|
|--------|---------|
|
|
| `RELEASE_TOKEN` | Gitea access token with `write:repository` scope, used to create the release and upload assets. |
|
|
|
|
## Notes
|
|
|
|
- `actions/upload-artifact@v3` / `download-artifact@v3` are used because Gitea does not yet support v4.
|
|
- Linux binaries link against the glibc of the build host; build on the oldest distro you want to
|
|
support.
|
|
- macOS binaries are unsigned; first run may need `xattr -d com.apple.quarantine envbao` if downloaded
|
|
through a browser.
|