fix: add VERSION ARG to rpm-builder stage to fix RPM build cache issue
Some checks failed
Build RPM Package / Build RPM Packages (CentOS 7, Rocky 8/9/10) (push) Has been cancelled

- Declare ARG VERSION in rpm-builder stage for FPM to access
- Add packages/ directory to .gitignore (build artifacts)

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
This commit is contained in:
Jacquin Antoine
2026-02-28 23:39:21 +01:00
parent 9172928f0f
commit d914ba1fa0
2 changed files with 6 additions and 0 deletions

3
.gitignore vendored
View File

@ -51,6 +51,9 @@ test-results/
# Test artifacts # Test artifacts
packaging/test/*.rpm packaging/test/*.rpm
# Build artifacts
packages/
# Binary (root level only) # Binary (root level only)
/ja4sentinel /ja4sentinel
ja4sentinel-linux-amd64 ja4sentinel-linux-amd64

View File

@ -52,6 +52,9 @@ FROM rockylinux:9 AS rpm-builder
WORKDIR /package WORKDIR /package
# VERSION must be redeclared for each stage that needs it
ARG VERSION=1.0.0
# Install fpm and rpm tools (Rocky Linux 9) # Install fpm and rpm tools (Rocky Linux 9)
# fpm does not require libpcap - only needed for building the Go binary # fpm does not require libpcap - only needed for building the Go binary
RUN dnf install -y \ RUN dnf install -y \