1c0e47167c
Moves node-lookup to IUCLabs/node-lookup on GitHub; it must carry no internal hostnames or Woodpecker release. - Loads PuppetDB, Puppetboard and domain from config (flags > env > ~/.config > /etc) for all 3 tools; errors name the config paths - Ships packaging/config.example.yaml as an RPM doc - Rewrites .goreleaser.yaml: raw binaries + amd64 RPM with completions, signed checksums - Adds GitHub CI/release workflows, CODEOWNERS, zizmor config, README - Makes patch/minor/major draft a GitHub release; make rpm runs a goreleaser snapshot - Removes the Woodpecker release pipeline, nfpm.yaml and build-rpm.sh Reviewed-on: #24 Co-authored-by: unkin-agent <unkin-agent@unkin.net> Co-committed-by: unkin-agent <unkin-agent@unkin.net>
63 lines
1.4 KiB
YAML
63 lines
1.4 KiB
YAML
name: ci
|
|
|
|
on:
|
|
pull_request:
|
|
push:
|
|
branches: [main]
|
|
|
|
permissions: {}
|
|
|
|
concurrency:
|
|
group: ci-${{ github.ref }}
|
|
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
|
|
|
|
jobs:
|
|
ci:
|
|
uses: IUCLabs/workflows/.github/workflows/pre-commit.yml@v0.1.1
|
|
permissions:
|
|
contents: read
|
|
with:
|
|
go_version_file: go.mod
|
|
runs_on: iuclabs-infra
|
|
|
|
actions:
|
|
uses: IUCLabs/workflows/.github/workflows/actions.yml@v0.1.1
|
|
permissions:
|
|
contents: read
|
|
with:
|
|
runs_on: iuclabs-infra
|
|
|
|
go:
|
|
uses: IUCLabs/workflows/.github/workflows/go-ci.yml@v0.1.1
|
|
permissions:
|
|
contents: read
|
|
pull-requests: read
|
|
with:
|
|
runs_on: iuclabs-infra
|
|
|
|
release-snapshot:
|
|
uses: IUCLabs/workflows/.github/workflows/release-goreleaser.yml@v0.1.1
|
|
# the called job declares the release permissions; snapshot skips Vault, signing and publishing
|
|
permissions:
|
|
contents: write
|
|
id-token: write
|
|
packages: write
|
|
with:
|
|
image: false
|
|
snapshot: true
|
|
runs_on: iuclabs-infra
|
|
|
|
goreleaser-check:
|
|
runs-on: iuclabs-infra
|
|
permissions:
|
|
contents: read
|
|
steps:
|
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
with:
|
|
persist-credentials: false
|
|
- uses: goreleaser/goreleaser-action@a4f02ab5355a589de60d917a659ce617ed19b3de # v7.3.0
|
|
with:
|
|
distribution: goreleaser
|
|
version: v2.20.2
|
|
args: check
|