Is it possible to use rendered template files as a source to nfpm contents? #3842
Closed
ryancurrah
started this conversation in
Ideas
Replies: 1 comment 9 replies
-
not at this moment, but I plan to make it available directly into some pipes, e.g.: nfpms:
- id: widgetmaker-service-deb
contents:
- src_template_file: '.packaging/systemd_starter.sh.tpl'
dst: '/opt/acme/bin/systemd_starter.sh'
# or:
template_contents:
- src: '.packaging/systemd_unit.service.tpl'
dst: '/opt/acme/etc/{{.Binary}}.service' that was my idea, at least. Any thoughts? |
Beta Was this translation helpful? Give feedback.
9 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I would like to use the new https://goreleaser.com/customization/templatefiles/ feature to provide rendered files to the
nfpms[0].contents
section. Where thesrc
would be a rendered file from a template. Is it possible to do that? This would help us reduce a lot of manual editing of nfpm scripts.Beta Was this translation helpful? Give feedback.
All reactions