From 253e14a37be62065252f4ae0cd2121e3f56a7e9f Mon Sep 17 00:00:00 2001 From: Ismo Vuorinen Date: Fri, 2 Jan 2026 03:02:54 +0200 Subject: [PATCH] fix(ci): docker builds for goreleaser (#133) --- .goreleaser.yaml | 11 ++++++++--- Dockerfile | 7 +++++-- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/.goreleaser.yaml b/.goreleaser.yaml index ee0c739..b618f84 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -56,9 +56,11 @@ archives: - README.md - LICENSE* - CHANGELOG.md - - docs/**/* - - templates/**/* - - schemas/**/* + - docs/*.md + - templates/*.tmpl + - templates/themes/**/*.tmpl + - templates/themes/**/*.adoc + - schemas/*.json checksum: name_template: 'checksums.txt' @@ -196,6 +198,9 @@ dockers_v2: platforms: - linux/amd64 - linux/arm64 + extra_files: + - templates + - schemas labels: org.opencontainers.image.created: "{{.Date}}" org.opencontainers.image.title: "{{.ProjectName}}" diff --git a/Dockerfile b/Dockerfile index 838b8ac..c2354c1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,8 +1,11 @@ # Dockerfile for gh-action-readme FROM scratch -# Copy the binary from the build context -COPY gh-action-readme /usr/local/bin/gh-action-readme +# Multi-platform build support +ARG TARGETPLATFORM + +# Copy the binary from the build context (platform-specific) +COPY $TARGETPLATFORM/gh-action-readme /usr/local/bin/gh-action-readme # Copy templates and schemas COPY templates /usr/local/share/gh-action-readme/templates