Add GitHub Actions CI and GoReleaser release
ci/woodpecker/pr/build Pipeline was successful
ci/woodpecker/pr/test Pipeline was successful
ci / build (pull_request) Has been cancelled
ci/woodpecker/pr/pre-commit Pipeline was successful
ci / test (pull_request) Has been cancelled
ci / pre-commit (pull_request) Has been cancelled
ci / lint (pull_request) Has been cancelled

This commit is contained in:
2026-11-18 23:39:24 +11:00
parent d29a79ac70
commit 919c2bcd27
8 changed files with 165 additions and 66 deletions
+9
View File
@@ -0,0 +1,9 @@
#!/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"