From c1a93c2502c63161c717df8106d5e2bbaf4e36eb Mon Sep 17 00:00:00 2001 From: Ian Chin Wang Date: Wed, 26 Aug 2026 09:54:42 -0400 Subject: [PATCH 1/2] build: add RPM release workflow Signed-off-by: Ian Chin Wang --- .github/workflows/release-rpm.yml | 59 +++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 .github/workflows/release-rpm.yml diff --git a/.github/workflows/release-rpm.yml b/.github/workflows/release-rpm.yml new file mode 100644 index 00000000..4832d98c --- /dev/null +++ b/.github/workflows/release-rpm.yml @@ -0,0 +1,59 @@ +name: Build RPM release package + +on: + release: + types: [published] + +permissions: + contents: read + +jobs: + package: + name: Build RPM + runs-on: ubuntu-latest + container: fedora:42 + env: + GO111MODULE: on + CI_PIPELINE: true + RELEASE_VERSION: ${{ github.event.release.tag_name }} + steps: + - name: Checkout code + uses: actions/checkout@v4 + with: + ref: ${{ github.event.release.tag_name }} + + - name: Set up Go + uses: actions/setup-go@v5 + with: + go-version: "1.26" + cache: false + + - name: Install RPM build dependencies + run: | + dnf --assumeyes install \ + gcc \ + gettext \ + git \ + golang \ + jose \ + jq \ + make \ + openssl \ + protobuf \ + protobuf-compiler \ + protobuf-devel \ + rpm-build \ + rpmdevtools \ + sqlite + + - name: Build RPM + run: | + export VERAISON_BUILD_VERSION="${RELEASE_VERSION#v}" + make rpm + + - name: Upload RPM + uses: actions/upload-artifact@v4 + with: + name: veraison-services-rpm-${{ github.event.release.tag_name }} + path: ~/rpmbuild/RPMS/**/*.rpm + if-no-files-found: error From e9495a7f3644f6578cd0c68c6a3c19d0e1e555f7 Mon Sep 17 00:00:00 2001 From: Ian Chin Wang Date: Fri, 4 Sep 2026 15:57:51 -0400 Subject: [PATCH 2/2] build: trigger RPM packaging from monthly tags Signed-off-by: Ian Chin Wang --- .github/workflows/release-rpm.yml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release-rpm.yml b/.github/workflows/release-rpm.yml index 4832d98c..5e15d912 100644 --- a/.github/workflows/release-rpm.yml +++ b/.github/workflows/release-rpm.yml @@ -1,8 +1,9 @@ -name: Build RPM release package +name: Automatic RPM package creation based on the monthly tag on: - release: - types: [published] + push: + tags: + - v0.0.** permissions: contents: read @@ -15,12 +16,13 @@ jobs: env: GO111MODULE: on CI_PIPELINE: true - RELEASE_VERSION: ${{ github.event.release.tag_name }} + RELEASE_VERSION: ${{ github.ref_name }} steps: - name: Checkout code uses: actions/checkout@v4 with: - ref: ${{ github.event.release.tag_name }} + fetch-tags: true + fetch-depth: 0 - name: Set up Go uses: actions/setup-go@v5 @@ -54,6 +56,6 @@ jobs: - name: Upload RPM uses: actions/upload-artifact@v4 with: - name: veraison-services-rpm-${{ github.event.release.tag_name }} + name: veraison-services-rpm-${{ github.ref_name }} path: ~/rpmbuild/RPMS/**/*.rpm if-no-files-found: error