This repository has been archived on 2026-11-19. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
unkin-agent 681bd8264f
ci / pre-commit (push) Has been cancelled
ci / lint (push) Has been cancelled
ci / test (push) Has been cancelled
ci / build (push) Has been cancelled
Add GitHub Actions CI and GoReleaser release (#6)
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>
2026-11-19 22:26:22 +11:00

39 lines
1019 B
YAML

name: release
on:
push:
tags: ["v*"]
permissions:
contents: write
id-token: write
env:
VAULT_ADDR: https://vault.service.consul:8200
jobs:
release:
runs-on: iuclabs-release
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 0
- uses: actions/setup-go@d8cbb8045d7f43706b9177cceb36c1f91a6644d5 # v7.1.0
with:
go-version-file: go.mod
- uses: hashicorp/vault-action@892a26828f195e65540a40b4768ae4571f51ebfc # v4.0.0
with:
url: ${{ env.VAULT_ADDR }}
method: jwt
path: jwt/github/iuclabs
role: release
jwtGithubAudience: ${{ env.VAULT_ADDR }}
exportToken: true
- uses: goreleaser/goreleaser-action@a4f02ab5355a589de60d917a659ce617ed19b3de # v7.3.0
with:
distribution: goreleaser
version: v2.20.2
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}