681bd8264f
Releases move to the GitHub IUCLabs mirror so a `v*` tag publishes signed x86_64 RPMs as GitHub release assets; Woodpecker keeps PR CI only. - `ci.yml` runs pre-commit, vet, test and build on PRs and main - `release.yml` runs goreleaser on `v*` tags and signs SHA256SUMS via the Vault GPG engine (`scripts/sign.sh`) - `.goreleaser.yml` builds linux/amd64 and packages the vault and openbao RPMs via nfpms; no binary archives - `make rpm` builds a local goreleaser snapshot; `build-rpm.sh`, the nfpm template and `.woodpecker/release.yml` are removed - `.github/CODEOWNERS` assigns `@IUCLabs/maintainers` Reviewed-on: #6 Co-authored-by: unkin-agent <unkin-agent@unkin.net> Co-committed-by: unkin-agent <unkin-agent@unkin.net>
53 lines
1.5 KiB
YAML
53 lines
1.5 KiB
YAML
name: ci
|
|
|
|
on:
|
|
pull_request:
|
|
push:
|
|
branches: [main]
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
concurrency:
|
|
group: ci-${{ github.ref }}
|
|
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
|
|
|
|
jobs:
|
|
pre-commit:
|
|
runs-on: iuclabs-k8s
|
|
steps:
|
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
- uses: actions/setup-go@d8cbb8045d7f43706b9177cceb36c1f91a6644d5 # v7.1.0
|
|
with:
|
|
go-version-file: go.mod
|
|
- uses: astral-sh/setup-uv@68559e99cc807c1eb7e9238fd43a15bba460eec2 # v10.3.3
|
|
- run: uvx pre-commit run --all-files --show-diff-on-failure
|
|
|
|
lint:
|
|
runs-on: iuclabs-k8s
|
|
steps:
|
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
- uses: actions/setup-go@d8cbb8045d7f43706b9177cceb36c1f91a6644d5 # v7.1.0
|
|
with:
|
|
go-version-file: go.mod
|
|
- run: go vet ./...
|
|
|
|
test:
|
|
runs-on: iuclabs-k8s
|
|
steps:
|
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
- uses: actions/setup-go@d8cbb8045d7f43706b9177cceb36c1f91a6644d5 # v7.1.0
|
|
with:
|
|
go-version-file: go.mod
|
|
# runner image has no C toolchain, so no -race
|
|
- run: go test -count=1 ./...
|
|
|
|
build:
|
|
runs-on: iuclabs-k8s
|
|
steps:
|
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
- uses: actions/setup-go@d8cbb8045d7f43706b9177cceb36c1f91a6644d5 # v7.1.0
|
|
with:
|
|
go-version-file: go.mod
|
|
- run: go build -trimpath -ldflags="-s -w" ./...
|