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>
10 lines
400 B
Bash
Executable File
10 lines
400 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Detached binary signature of $1 into $2 via the Vault gpg engine.
|
|
set -euo pipefail
|
|
b=$(base64 -w0 "$1")
|
|
jq -n --arg input "$b" '{input: $input, format: "base64"}' \
|
|
| curl -sSf --cacert "${VAULT_CACERT:-/etc/vault-ca/ca.crt}" \
|
|
-H "X-Vault-Token: ${VAULT_TOKEN}" -d @- \
|
|
"${VAULT_ADDR}/v1/gpg/sign/iuclabs-release" \
|
|
| jq -er .data.signature | base64 -d > "$2"
|