- nfpm has been packaged and stored in unkin repo
This commit is contained in:
parent
839b39f78e
commit
fe6cc84cba
@ -7,12 +7,7 @@ RUN dnf module enable -y nodejs:20 && \
|
|||||||
|
|
||||||
# Install build tools and dependencies for building RPMs
|
# Install build tools and dependencies for building RPMs
|
||||||
RUN dnf groupinstall -y 'Development Tools' && \
|
RUN dnf groupinstall -y 'Development Tools' && \
|
||||||
dnf install -y make cmake gcc gcc-c++ rpm rpmdevtools wget tar gzip go
|
dnf install -y make cmake gcc gcc-c++ rpm rpmdevtools wget tar gzip go nfpm
|
||||||
|
|
||||||
# Install nfpm using the RPM package
|
|
||||||
ARG NFPM_VERSION
|
|
||||||
ENV NFPM_VERSION=${NFPM_VERSION}
|
|
||||||
RUN dnf install -y https://github.com/goreleaser/nfpm/releases/download/v${NFPM_VERSION}/nfpm-${NFPM_VERSION}-1.x86_64.rpm
|
|
||||||
|
|
||||||
# Cleanup
|
# Cleanup
|
||||||
RUN dnf clean all && \
|
RUN dnf clean all && \
|
||||||
|
|||||||
4
Makefile
4
Makefile
@ -1,6 +1,3 @@
|
|||||||
# Set the nfpm version to install
|
|
||||||
NFPM_VERSION := 2.41.1
|
|
||||||
|
|
||||||
# Get the current Git commit hash
|
# Get the current Git commit hash
|
||||||
GIT_COMMIT := $(shell git rev-parse --short HEAD)
|
GIT_COMMIT := $(shell git rev-parse --short HEAD)
|
||||||
|
|
||||||
@ -16,7 +13,6 @@ OWNER := unkin
|
|||||||
build:
|
build:
|
||||||
docker build \
|
docker build \
|
||||||
--network=host \
|
--network=host \
|
||||||
--build-arg NFPM_VERSION=$(NFPM_VERSION) \
|
|
||||||
-t $(REGISTRY)/$(OWNER)/$(IMAGE_NAME) .
|
-t $(REGISTRY)/$(OWNER)/$(IMAGE_NAME) .
|
||||||
|
|
||||||
# Tag the Docker image with the Git commit hash, the date, and 'latest'
|
# Tag the Docker image with the Git commit hash, the date, and 'latest'
|
||||||
|
|||||||
Reference in New Issue
Block a user