#!/usr/bin/bash set -e # Upstream publishes no tags or releases; PACKAGE_VERSION dates this commit. COMMIT=3031b5d01c50d2748a32c7c9386ea7049883f38e # go.mod requires go 1.26.1 export GOTOOLCHAIN=go1.26.1 # Compile the go-cache-plugin binary using Go GOBIN=/app go install github.com/tailscale/go-cache-plugin/cmd/go-cache-plugin@${COMMIT} # Process nfpm.yaml with envsubst envsubst < /app/resources/nfpm.yaml > /app/nfpm.yaml # Build the RPM nfpm pkg --config /app/nfpm.yaml --target /app/dist --packager rpm