- Add github_release_pattern field to support multi-product repositories - Implement get_github_releases_by_pattern() for filtered release matching - Add parse_github_version_release() to extract version-release components - Update openbao plugin packages with release patterns and correct versions - Configure openbao-plugins meta package for manual versioning - Fix HashiCorp package GitHub repository references - Support complex tag formats like "secrets-consul-v0.1.0" and "v7.1.3-1" This enables automatic updates for packages sharing GitHub repos while maintaining proper RPM version/release semantics and backward compatibility.
14 lines
386 B
Bash
Executable File
14 lines
386 B
Bash
Executable File
#!/usr/bin/bash
|
|
set -e
|
|
|
|
# Set Go toolchain to support newer nfpm versions
|
|
export GOTOOLCHAIN=go1.25.0
|
|
|
|
# Compile nfpm binary using Go
|
|
GOBIN=/app go install github.com/goreleaser/nfpm/v2/cmd/nfpm@v${PACKAGE_VERSION}
|
|
|
|
# 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 |