mirror of
https://github.com/ivuorinen/gh-action-readme.git
synced 2026-03-12 03:59:58 +00:00
fix(ci): docker builds for goreleaser (#133)
This commit is contained in:
@@ -56,9 +56,11 @@ archives:
|
|||||||
- README.md
|
- README.md
|
||||||
- LICENSE*
|
- LICENSE*
|
||||||
- CHANGELOG.md
|
- CHANGELOG.md
|
||||||
- docs/**/*
|
- docs/*.md
|
||||||
- templates/**/*
|
- templates/*.tmpl
|
||||||
- schemas/**/*
|
- templates/themes/**/*.tmpl
|
||||||
|
- templates/themes/**/*.adoc
|
||||||
|
- schemas/*.json
|
||||||
|
|
||||||
checksum:
|
checksum:
|
||||||
name_template: 'checksums.txt'
|
name_template: 'checksums.txt'
|
||||||
@@ -196,6 +198,9 @@ dockers_v2:
|
|||||||
platforms:
|
platforms:
|
||||||
- linux/amd64
|
- linux/amd64
|
||||||
- linux/arm64
|
- linux/arm64
|
||||||
|
extra_files:
|
||||||
|
- templates
|
||||||
|
- schemas
|
||||||
labels:
|
labels:
|
||||||
org.opencontainers.image.created: "{{.Date}}"
|
org.opencontainers.image.created: "{{.Date}}"
|
||||||
org.opencontainers.image.title: "{{.ProjectName}}"
|
org.opencontainers.image.title: "{{.ProjectName}}"
|
||||||
|
|||||||
@@ -1,8 +1,11 @@
|
|||||||
# Dockerfile for gh-action-readme
|
# Dockerfile for gh-action-readme
|
||||||
FROM scratch
|
FROM scratch
|
||||||
|
|
||||||
# Copy the binary from the build context
|
# Multi-platform build support
|
||||||
COPY gh-action-readme /usr/local/bin/gh-action-readme
|
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 and schemas
|
||||||
COPY templates /usr/local/share/gh-action-readme/templates
|
COPY templates /usr/local/share/gh-action-readme/templates
|
||||||
|
|||||||
Reference in New Issue
Block a user