From fe6cc84cba796e9ea55b084c313894b6d8994ceb Mon Sep 17 00:00:00 2001 From: Ben Vincent Date: Mon, 2 Dec 2024 22:00:38 +1100 Subject: [PATCH] feat: change to nfpm from rpms - nfpm has been packaged and stored in unkin repo --- Dockerfile | 7 +------ Makefile | 4 ---- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/Dockerfile b/Dockerfile index 5c4a1b6..1e54e4d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,12 +7,7 @@ RUN dnf module enable -y nodejs:20 && \ # 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 tar gzip go - -# 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 + dnf install -y make cmake gcc gcc-c++ rpm rpmdevtools wget tar gzip go nfpm # Cleanup RUN dnf clean all && \ diff --git a/Makefile b/Makefile index a7e38f9..dfe41f6 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,3 @@ -# 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) @@ -16,7 +13,6 @@ OWNER := unkin build: docker build \ --network=host \ - --build-arg NFPM_VERSION=$(NFPM_VERSION) \ -t $(REGISTRY)/$(OWNER)/$(IMAGE_NAME) . # Tag the Docker image with the Git commit hash, the date, and 'latest'