feat: add nfpm/go to buildrunner
Some checks failed
Build / build (pull_request) Failing after 3m7s

This commit is contained in:
Ben Vincent 2024-11-30 23:34:31 +11:00
parent e0fee84e65
commit 1de8a88b9b
2 changed files with 9 additions and 2 deletions

View File

@ -9,9 +9,13 @@ RUN dnf clean all && \
RUN dnf module enable -y nodejs:20 && \
dnf install -y nodejs
# Install build-essential
# Install build tools and dependencies for building RPMs
RUN dnf groupinstall -y 'Development Tools' && \
dnf install -y make cmake gcc gcc-c++ rpm rpmdevtools wget
dnf install -y make cmake gcc gcc-c++ rpm rpmdevtools wget tar gzip go
# Install nfpm using the RPM package
RUN dnf install -y https://github.com/goreleaser/nfpm/releases/download/v${NFPM_VERSION}/nfpm-${NFPM_VERSION}-1.x86_64.rpm
# Cleanup
RUN dnf clean all && \

View File

@ -1,3 +1,6 @@
# Set the nfpm version to install
NFPM_VERSION := 2.41.1
# Get the current Git commit hash
GIT_COMMIT := $(shell git rev-parse --short HEAD)