-
Notifications
You must be signed in to change notification settings - Fork 24
/
.goreleaser.yml
148 lines (148 loc) · 5.78 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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
project_name: vault-kubernetes
release:
github:
owner: postfinance
name: vault-kubernetes
builds:
- id: synchronizer
goos:
- linux
goarch:
- amd64
- arm64
main: ./cmd/synchronizer/
binary: synchronizer
env:
- CGO_ENABLED=0
- id: authenticator
goos:
- linux
goarch:
- amd64
- arm64
main: ./cmd/authenticator/
binary: authenticator
env:
- CGO_ENABLED=0
- id: token-renewer
goos:
- linux
goarch:
- amd64
- arm64
main: ./cmd/token-renewer/
binary: token-renewer
env:
- CGO_ENABLED=0
dockers:
- ids:
- synchronizer
goos: linux
goarch: amd64
dockerfile: packaging/docker/synchronizer/Dockerfile
use: buildx
image_templates:
- postfinance/{{ .ProjectName }}-synchronizer:{{ .Major }}.{{ .Minor }}.{{ .Patch }}
- postfinance/{{ .ProjectName }}-synchronizer:{{ .Major }}.{{ .Minor }}
- postfinance/{{ .ProjectName }}-synchronizer:latest
build_flag_templates:
- --label=org.opencontainers.image.created={{ .Date }}
- --label=org.opencontainers.image.revision={{ .ShortCommit }}
- --label=org.opencontainers.image.source={{ .GitURL }}
- --label=org.opencontainers.image.url={{ .GitURL }}
- --label=org.opencontainers.image.vendor=PostFinance AG
- --label=org.opencontainers.image.version={{ .Version }}
- --pull
- ids:
- synchronizer
goos: linux
goarch: arm64
dockerfile: packaging/docker/synchronizer/Dockerfile
use: buildx
image_templates:
- postfinance/{{ .ProjectName }}-synchronizer:{{ .Major }}.{{ .Minor }}.{{ .Patch }}-arm64
- postfinance/{{ .ProjectName }}-synchronizer:{{ .Major }}.{{ .Minor }}-arm64
- postfinance/{{ .ProjectName }}-synchronizer:latest-arm64
build_flag_templates:
- --platform=linux/arm64
- --label=org.opencontainers.image.created={{ .Date }}
- --label=org.opencontainers.image.revision={{ .ShortCommit }}
- --label=org.opencontainers.image.source={{ .GitURL }}
- --label=org.opencontainers.image.url={{ .GitURL }}
- --label=org.opencontainers.image.vendor=PostFinance AG
- --label=org.opencontainers.image.version={{ .Version }}
- --pull
- ids:
- authenticator
goos: linux
goarch: amd64
dockerfile: packaging/docker/authenticator/Dockerfile
use: buildx
image_templates:
- postfinance/{{ .ProjectName }}-authenticator:{{ .Major }}.{{ .Minor }}.{{ .Patch }}
- postfinance/{{ .ProjectName }}-authenticator:{{ .Major }}.{{ .Minor }}
- postfinance/{{ .ProjectName }}-authenticator:latest
build_flag_templates:
- --label=org.opencontainers.image.created={{ .Date }}
- --label=org.opencontainers.image.revision={{ .ShortCommit }}
- --label=org.opencontainers.image.source={{ .GitURL }}
- --label=org.opencontainers.image.url={{ .GitURL }}
- --label=org.opencontainers.image.vendor=PostFinance AG
- --label=org.opencontainers.image.version={{ .Version }}
- --pull
- ids:
- authenticator
goos: linux
goarch: arm64
dockerfile: packaging/docker/authenticator/Dockerfile
use: buildx
image_templates:
- postfinance/{{ .ProjectName }}-authenticator:{{ .Major }}.{{ .Minor }}.{{ .Patch }}-arm64
- postfinance/{{ .ProjectName }}-authenticator:{{ .Major }}.{{ .Minor }}-arm64
- postfinance/{{ .ProjectName }}-authenticator:latest-arm64
build_flag_templates:
- --platform=linux/arm64
- --label=org.opencontainers.image.created={{ .Date }}
- --label=org.opencontainers.image.revision={{ .ShortCommit }}
- --label=org.opencontainers.image.source={{ .GitURL }}
- --label=org.opencontainers.image.url={{ .GitURL }}
- --label=org.opencontainers.image.vendor=PostFinance AG
- --label=org.opencontainers.image.version={{ .Version }}
- --pull
- ids:
- token-renewer
goos: linux
goarch: amd64
dockerfile: packaging/docker/token-renewer/Dockerfile
use: buildx
image_templates:
- postfinance/{{ .ProjectName }}-token-renewer:{{ .Major }}.{{ .Minor }}.{{ .Patch }}
- postfinance/{{ .ProjectName }}-token-renewer:{{ .Major }}.{{ .Minor }}
- postfinance/{{ .ProjectName }}-token-renewer:latest
build_flag_templates:
- --label=org.opencontainers.image.created={{ .Date }}
- --label=org.opencontainers.image.revision={{ .ShortCommit }}
- --label=org.opencontainers.image.source={{ .GitURL }}
- --label=org.opencontainers.image.url={{ .GitURL }}
- --label=org.opencontainers.image.vendor=PostFinance AG
- --label=org.opencontainers.image.version={{ .Version }}
- --pull
- ids:
- token-renewer
goos: linux
goarch: arm64
dockerfile: packaging/docker/token-renewer/Dockerfile
use: buildx
image_templates:
- postfinance/{{ .ProjectName }}-token-renewer:{{ .Major }}.{{ .Minor }}.{{ .Patch }}-arm64
- postfinance/{{ .ProjectName }}-token-renewer:{{ .Major }}.{{ .Minor }}-arm64
- postfinance/{{ .ProjectName }}-token-renewer:latest-arm64
build_flag_templates:
- --platform=linux/arm64
- --label=org.opencontainers.image.created={{ .Date }}
- --label=org.opencontainers.image.revision={{ .ShortCommit }}
- --label=org.opencontainers.image.source={{ .GitURL }}
- --label=org.opencontainers.image.url={{ .GitURL }}
- --label=org.opencontainers.image.vendor=PostFinance AG
- --label=org.opencontainers.image.version={{ .Version }}
- --pull