-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.goreleaser.demo.yaml
47 lines (47 loc) · 1.18 KB
/
.goreleaser.demo.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
project_name: spiffe-demo
before:
hooks:
- go mod tidy
- go test -v ./...
builds:
- id: spiffe-demo-server
main: ./internal/cmd/server
binary: spiffe-demo-server
env:
- CGO_ENABLED=0
targets:
- linux_$ARCH
- id: spiffe-demo-client
main: ./internal/cmd/client
binary: spiffe-demo-client
env:
- CGO_ENABLED=0
targets:
- linux_$ARCH
archives:
- format: tar.gz
format_overrides:
- goos: windows
format: zip
files:
- LICENSE
dockers:
- id: server-$ARCH
goarch: $ARCH
image_templates:
- jetstack/spiffe-demo-server:{{ .Env.VERSION }}-$ARCH
use: buildx
dockerfile: internal/cmd/server/Dockerfile
- id: client-$ARCH
goarch: $ARCH
image_templates:
- jetstack/spiffe-demo-client:{{ .Env.VERSION }}-$ARCH
use: buildx
dockerfile: internal/cmd/client/Dockerfile
docker_manifests:
- name_template: jetstack/spiffe-demo-server:{{ .Env.VERSION }}
image_templates:
- jetstack/spiffe-demo-server:{{ .Env.VERSION }}-$ARCH
- name_template: jetstack/spiffe-demo-client:{{ .Env.VERSION }}
image_templates:
- jetstack/spiffe-demo-client:{{ .Env.VERSION }}-$ARCH