-
Notifications
You must be signed in to change notification settings - Fork 1
/
.goreleaser.yml
103 lines (91 loc) · 2.92 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
project_name: pomerium-datasource
release:
prerelease: auto
github:
owner: pomerium
name: datasource
name_template: "v{{.Version}}"
env:
- GO111MODULE=on
- CGO_ENABLED=0
before:
hooks:
- go mod download
builds:
- id: datasource
main: ./cmd/pomerium-datasource
binary: pomerium-datasource
goarch:
- amd64
- arm
- arm64
goos:
- linux
- darwin
- windows
- freebsd
goarm:
- "6"
- "7"
ignore:
- goos: freebsd
goarch: arm64
- goos: freebsd
goarch: arm
ldflags:
- -s -w
- -X github.com/pomerium/datasource/internal/version.Version={{.Version}}
- -X github.com/pomerium/datasource/internal/version.GitCommit={{.ShortCommit}}
- -X github.com/pomerium/datasource/internal/version.BuildMeta={{.Timestamp}}
- -X github.com/pomerium/datasource/internal/version.ProjectName={{.ProjectName}}
- -X github.com/pomerium/datasource/internal/version.ProjectURL=https://wwww.pomerium.com
archives:
- name_template: "{{ .ProjectName }}-{{ .Os }}-{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"
id: datasource
builds:
- datasource
files:
- none*
format_overrides:
- goos: windows
format: zip
checksum:
name_template: "{{ .ProjectName }}_checksums.txt"
snapshot:
name_template: "{{ .Version }}+next+{{ .ShortCommit }}"
dockers:
- image_templates:
- "pomerium/datasource:amd64-{{ .Tag }}"
- "docker.cloudsmith.io/pomerium/datasource/pomerium-datasource:{{ .Tag }}"
dockerfile: Dockerfile.release
use: buildx
build_flag_templates:
- "--pull"
- "--platform=linux/amd64"
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.name={{.ProjectName}}"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Version}}"
- "--label=org.opencontainers.image.source={{.GitURL}}"
- "--label=repository=http://github.com/pomerium/datasource"
- "--label=homepage=http://www.pomerium.com"
- goarch: arm64
image_templates:
- "pomerium/datasource:arm64v8-{{ .Tag }}"
dockerfile: Dockerfile.release
use: buildx
build_flag_templates:
- "--pull"
- "--platform=linux/arm64"
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.name={{.ProjectName}}"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Version}}"
- "--label=org.opencontainers.image.source={{.GitURL}}"
- "--label=repository=http://github.com/pomerium/datasource"
- "--label=homepage=http://www.pomerium.com"
docker_manifests:
- name_template: "pomerium/datasource:{{ .Tag }}"
image_templates:
- pomerium/datasource:arm64v8-{{ .Tag }}
- pomerium/datasource:amd64-{{ .Tag }}