diff --git a/.goreleaser.yaml b/.goreleaser.yaml index b618f84..6ded7ea 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -57,9 +57,6 @@ archives: - LICENSE* - CHANGELOG.md - docs/*.md - - templates/*.tmpl - - templates/themes/**/*.tmpl - - templates/themes/**/*.adoc - schemas/*.json checksum: @@ -199,7 +196,6 @@ dockers_v2: - linux/amd64 - linux/arm64 extra_files: - - templates - schemas labels: org.opencontainers.image.created: "{{.Date}}" diff --git a/Dockerfile b/Dockerfile index c468469..ab30e3c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,12 +10,10 @@ 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 +# Copy schemas (templates are embedded in the binary via go:embed) COPY schemas /usr/local/share/gh-action-readme/schemas -# Set environment variables for template paths -ENV GH_ACTION_README_TEMPLATE_PATH=/usr/local/share/gh-action-readme/templates +# Set environment variable for schema path ENV GH_ACTION_README_SCHEMA_PATH=/usr/local/share/gh-action-readme/schemas # Set the binary as entrypoint