From 11f3879442785862d79361e77579e0a7509321bb Mon Sep 17 00:00:00 2001 From: James Hillyerd Date: Sun, 11 Jul 2021 10:05:00 -0700 Subject: [PATCH] goreleaser: update nfpm config to use contents attrib (#220) fixes #219 Signed-off-by: James Hillyerd --- .goreleaser.yml | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index cdd1a13..2a5fd7c 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -74,11 +74,15 @@ nfpms: maintainer: github@hillyerd.com description: All-in-one disposable webmail service. license: MIT - files: - "ui/dist/**/*": "/usr/local/share/inbucket/ui" - config_files: - "etc/linux/inbucket.service": "/lib/systemd/system/inbucket.service" - "ui/greeting.html": "/etc/inbucket/greeting.html" + contents: + - src: "ui/dist/**/*" + dst: "/usr/local/share/inbucket/ui" + - src: "etc/linux/inbucket.service" + dst: "/lib/systemd/system/inbucket.service" + type: config|noreplace + - src: "ui/greeting.html" + dst: "/etc/inbucket/greeting.html" + type: config|noreplace snapshot: name_template: SNAPSHOT-{{ .Commit }}