Files
rpmbuilder/rpms/k8up/resources/build.sh
T
unkin-agent 05f44b83c4
ci/woodpecker/push/deploy-fedora43 Pipeline was successful
ci/woodpecker/push/deploy-fedora44 Pipeline was successful
ci/woodpecker/push/deploy-fedora42 Pipeline was successful
ci/woodpecker/push/deploy-almalinux8 Pipeline was canceled
ci/woodpecker/push/deploy-almalinux9 Pipeline was canceled
add k8up package (#181)
The k8up CLI (`k8up cli restore`) has no package, so restores need a manual GitHub download on each host.

- add k8up package pinned to 2.16.0, matching the deployed operator
- verify the release tarball against upstream checksums.txt
- ship urfave/cli bash, zsh and fish completions
- build for el9 and fedora 42-44

Requires terraform-artifactapi github allowlist for k8up-io/k8up.

Reviewed-on: #181
Co-authored-by: unkin-agent <unkin-agent@unkin.net>
Co-committed-by: unkin-agent <unkin-agent@unkin.net>
2026-10-03 00:23:58 +10:00

18 lines
545 B
Bash
Executable File

#!/usr/bin/bash
set -e
BASE_URL="https://artifactapi.k8s.syd1.au.unkin.net/api/v1/remote/github/k8up-io/k8up/releases/download/v${PACKAGE_VERSION}"
TARBALL="k8up_${PACKAGE_VERSION}_linux_amd64.tar.gz"
wget -O "/app/${TARBALL}" "${BASE_URL}/${TARBALL}"
wget -O /app/checksums.txt "${BASE_URL}/checksums.txt"
cd /app
grep " ${TARBALL}$" checksums.txt | sha256sum --check --strict -
tar xf "/app/${TARBALL}" -C /app/ k8up
envsubst < /app/resources/nfpm.yaml > /app/nfpm.yaml
nfpm pkg --config /app/nfpm.yaml --target /app/dist --packager rpm