From 9e877f65959d158684b69b119b73d2b3056fb1d5 Mon Sep 17 00:00:00 2001 From: Joseph Grasser Date: Thu, 3 Jul 2025 07:56:12 -0700 Subject: [PATCH 1/2] use fpm based on alamlinux 8 --- Dockerfile | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/Dockerfile b/Dockerfile index ba1a0fd..4a66668 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM ruby:3-alpine +FROM almalinux:8 LABEL "maintainer"="bpicode" LABEL "com.github.actions.name"="github-action-fpm" @@ -6,12 +6,10 @@ LABEL "com.github.actions.description"="Build packages for multiple platforms us LABEL "com.github.actions.icon"="package" LABEL "com.github.actions.color"="green" -RUN apk --no-cache add build-base -RUN apk --no-cache add rpm -RUN apk --no-cache add tar -RUN apk --no-cache add zip -RUN gem install --no-document fpm -v 1.15.1 +RUN dnf -y module enable ruby:3.1 \ + && dnf -y install ruby ruby-devel gcc make redhat-rpm-config \ + && gem install --no-document fpm \ + && dnf clean all COPY entrypoint.sh /entrypoint.sh - ENTRYPOINT ["/entrypoint.sh"] From 1aac9c1537d79aa6839a7726d3d71cd2fc463cf3 Mon Sep 17 00:00:00 2001 From: Joseph Grasser Date: Thu, 3 Jul 2025 07:56:35 -0700 Subject: [PATCH 2/2] quote fpm args to prevent word splitting --- entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index be7eebd..3e255b1 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -2,4 +2,4 @@ set -e -FPMOPTS="${INPUT_FPM_OPTS}" fpm $@ +FPMOPTS="${INPUT_FPM_OPTS}" fpm "$@"