Skip to content

Commit aeefd17

Browse files
authored
Update .goreleaser.yaml to include a Kubernetes manifest. (#18)
1 parent 4963542 commit aeefd17

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.goreleaser.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ version: 2
22
before:
33
hooks:
44
- go mod download
5+
- bash -eux -o pipefail -c "mkdir -p releases; cd config/variants/hrq; kustomize edit set image controller=ghcr.io/pfnet/{{ .ProjectName }}:{{ .Version }}; kustomize build . > ../../../releases/hrq.yaml"
56
builds:
67
- id: manager
78
env:
@@ -19,6 +20,9 @@ builds:
1920
- -a
2021
ldflags:
2122
- -s -w -X github.com/pfnet/hierarchical-namespaces/cmd.Version={{.Version}} -X github.com/pfnet/hierarchical-namespaces/cmd.Revision={{.ShortCommit}} -extldflags "-static"
23+
release:
24+
extra_files:
25+
- glob: "releases/hrq.yaml"
2226

2327
dockers:
2428
- image_templates: ["ghcr.io/pfnet/{{ .ProjectName }}:{{ .Version }}-amd64"]

0 commit comments

Comments
 (0)