fix(ci): docker builds for goreleaser (#133)

This commit is contained in:
2026-01-02 03:02:54 +02:00
committed by GitHub
parent 0d542555c5
commit 253e14a37b
2 changed files with 13 additions and 5 deletions

View File

@@ -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}}"

View File

@@ -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