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
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:
3
.gitignore
vendored
3
.gitignore
vendored
@ -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
|
||||||
|
|||||||
@ -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 \
|
||||||
|
|||||||
Reference in New Issue
Block a user