forked from pulumi/pulumi-kubernetes-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yml
65 lines (54 loc) · 1.47 KB
/
.goreleaser.yml
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
53
54
55
56
57
58
59
60
61
62
63
64
65
project_name: pulumi-kubernetes-operator
builds:
- ldflags:
- -X github.com/pulumi/pulumi-kubernetes-operator/version.Version={{.Tag}}
- -w -extldflags "-static"
flags:
- -a
- -tags
- netgo
goos:
- linux
goarch:
- amd64
env:
- CGO_ENABLED=0
- GO111MODULE=on
main: ./cmd/manager/main.go
binary: pulumi-kubernetes-operator
archives:
- name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
replacements:
linux: Linux
amd64: x86_64
files:
- none*
checksum:
name_template: '{{ .ProjectName }}_checksums.txt'
snapshot:
name_template: "SNAPSHOT-{{.Commit}}"
changelog:
sort: asc
release:
github:
owner: pulumi
name: pulumi-kubernetes-operator
name_template: "{{.ProjectName}}-v{{.Version}}"
dockers:
-
# GOOS of the built binary that should be used.
goos: linux
# GOARCH of the built binary that should be used.
goarch: amd64
# Path to the Dockerfile (from the project root).
dockerfile: Dockerfile
# Templates of the Docker image names.
image_templates:
- "pulumi/{{ .ProjectName }}:latest"
- "pulumi/{{ .ProjectName }}:{{ .Tag }}"
build_flag_templates:
- "--pull"
- "--label=org.label-schema.build-date={{.Date}}"
- "--label=org.label-schema.name={{ .ProjectName }}"
- "--label=org.label-schema.vcs-ref={{ .ShortCommit }}"
- "--label=org.label-schema.vcs-url='{{ .GitURL }}'"