generated from knative-extensions/sample-controller
-
Notifications
You must be signed in to change notification settings - Fork 30
/
.goreleaser.yaml
52 lines (52 loc) · 1.83 KB
/
.goreleaser.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
before:
hooks:
# You may remove this if you don't use go modules.
- go mod download
builds:
- id: "mink-build"
binary: mink
main: ./cmd/mink/main.go
env:
- CGO_ENABLED=0
flags:
- -mod=vendor
ldflags:
# KEEP IN SYNC WITH ./hack/build-flags.sh
- -X 'github.com/mattmoor/mink/pkg/bundles/kontext.BaseImageString=ghcr.io/mattmoor/github.com/mattmoor/mink/cmd/kontext-expander:v{{.Version}}'
- -X 'github.com/mattmoor/mink/pkg/builds/buildpacks.PlatformSetupImageString=ghcr.io/mattmoor/github.com/mattmoor/mink/cmd/platform-setup:v{{.Version}}'
- -X 'github.com/mattmoor/mink/pkg/builds/buildpacks.ExtractDigestImageString=ghcr.io/mattmoor/github.com/mattmoor/mink/cmd/extract-digest:v{{.Version}}'
- -X 'github.com/mattmoor/mink/pkg/builds/ko.KoImageString=ghcr.io/mattmoor/github.com/google/ko/cmd/ko:v{{.Version}}'
- -X 'github.com/mattmoor/mink/pkg/command.BuildDate={{.Date}}'
- -X 'github.com/mattmoor/mink/pkg/command.Version={{.Version}}'
- -X 'github.com/mattmoor/mink/pkg/command.CoreReleaseURI=https://github.com/mattmoor/mink/releases/download/v{{.Version}}/core.yaml'
- -X 'github.com/mattmoor/mink/pkg/command.InMemoryReleaseURI=https://github.com/mattmoor/mink/releases/download/v{{.Version}}/in-memory.yaml'
- -X 'github.com/mattmoor/mink/pkg/command.GitRevision={{.Commit}}'
goarch:
- 386
- amd64
- arm64
archives:
- replacements:
darwin: Darwin
linux: Linux
windows: Windows
386: i386
amd64: x86_64
name_template: "mink_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
files:
- LICENSE
wrap_in_directory: true
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ .Tag }}-next"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
release:
draft: false
prerelease: true
name_template: "Release {{ .Tag }}"