feat: enhance GitHub release tracking with pattern support and version extraction
- 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.
This commit is contained in:
+17
-15
@@ -1,18 +1,20 @@
|
||||
---
|
||||
arch: amd64
|
||||
builds:
|
||||
- image: git.unkin.net/unkin/almalinux8-rpmbuilder:latest
|
||||
release: '1'
|
||||
repository: [almalinux/el8]
|
||||
version: 2.41.1
|
||||
- image: git.unkin.net/unkin/almalinux9-rpmbuilder:latest
|
||||
release: '1'
|
||||
repository: [almalinux/el9]
|
||||
version: 2.41.1
|
||||
description: A zero dependencies, simple deb, rpm, apk, ipk, and arch linux packager written in Go.
|
||||
name: nfpm
|
||||
github: goreleaser/nfpm
|
||||
description: A zero dependencies, simple deb, rpm, apk, ipk, and arch linux packager
|
||||
written in Go.
|
||||
arch: amd64
|
||||
platform: linux
|
||||
maintainer: GoReleaser
|
||||
homepage: https://nfpm.goreleaser.com/
|
||||
license: MIT
|
||||
maintainer: GoReleaser
|
||||
name: nfpm
|
||||
platform: linux
|
||||
builds:
|
||||
- repository:
|
||||
- almalinux/el8
|
||||
image: git.unkin.net/unkin/almalinux8-rpmbuilder:latest
|
||||
release: 1-el8
|
||||
version: 2.44.1
|
||||
- repository:
|
||||
- almalinux/el9
|
||||
image: git.unkin.net/unkin/almalinux9-rpmbuilder:latest
|
||||
release: 1-el9
|
||||
version: 2.44.1
|
||||
|
||||
@@ -1,6 +1,9 @@
|
||||
#!/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}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user