Skip to content

Commit f0c3303

Browse files
committed
build(goreleaser): Install cleanup helper and enable image plugins
Install the cleanup-artifacts helper in the package and register the postremove script. Also enable container image storage and openpgp plugins. build(goreleaser): Add container image plugins Signed-off-by: syedowais312 <syedowais312sf@gmail.com>
1 parent 2a2fda1 commit f0c3303

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

.goreleaser-stable.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,12 @@ nfpms:
9999
dst: /usr/bin/kraftld
100100
- src: docs/man/
101101
dst: /usr/share/man/man1/
102+
- src: scripts/cleanup-artifacts.sh
103+
dst: /usr/libexec/kraftkit/cleanup-artifacts
104+
file_info:
105+
mode: 0755
106+
scripts:
107+
postremove: packaging/deb/postrm
102108

103109
aurs:
104110
- homepage: https://kraftkit.sh
@@ -241,6 +247,8 @@ builds:
241247
- -X {{ .Env.GOMOD }}/internal/cli/kraft.sentryDsn={{ .Env.SENTRY_DSN }}
242248
#@ end
243249
tags:
250+
- containers_image_storage_stub
251+
- containers_image_openpgp
244252
- netgo
245253
- osusergo
246254
#@ if bin == "kraft" and os == "linux" and arch == "amd64":

.goreleaser-staging.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,12 @@ nfpms:
8383
dst: /usr/bin/kraftld
8484
- src: docs/man/
8585
dst: /usr/share/man/man1/
86+
- src: scripts/cleanup-artifacts.sh
87+
dst: /usr/libexec/kraftkit/cleanup-artifacts
88+
file_info:
89+
mode: 0755
90+
scripts:
91+
postremove: packaging/deb/postrm
8692

8793
brews:
8894
- name: kraftkit-staging
@@ -179,6 +185,8 @@ builds:
179185
- -X {{ .Env.GOMOD }}/internal/cli/kraft.sentryDsn={{ .Env.SENTRY_DSN }}
180186
#@ end
181187
tags:
188+
- containers_image_storage_stub
189+
- containers_image_openpgp
182190
- netgo
183191
- osusergo
184192
#@ if bin == "kraft" and os == "linux" and arch == "amd64":

0 commit comments

Comments
 (0)