-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yml
103 lines (96 loc) · 2.59 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: octopinger
builds:
-
id: operator
binary: operator-{{.Os}}-{{.Arch}}
main: cmd/operator/main.go
goos:
- linux
goarch:
- amd64
- arm
- arm64
ignore:
- goos: darwin
goarch: 386
env:
- CGO_ENABLED=0
ldflags:
- -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}}
no_unique_dist_dir: true
-
id: octopinger
binary: octopinger-{{.Os}}-{{.Arch}}
main: cmd/octopinger/main.go
goos:
- linux
goarch:
- amd64
- arm
- arm64
ignore:
- goos: darwin
goarch: 386
env:
- CGO_ENABLED=0
ldflags:
- -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}}
no_unique_dist_dir: true
archives:
-
id: operator
builds:
- operator
name_template: "operator_{{.Version}}_{{.Os}}_{{.Arch}}"
-
id: octopinger
builds:
- octopinger
name_template: "octopinger_{{.Version}}_{{.Os}}_{{.Arch}}"
dockers:
-
dockerfile: Dockerfile.nonroot
goos: linux
goarch: amd64
ids:
- operator
image_templates:
- "ghcr.io/ionos-cloud/{{.ProjectName}}/operator:latest"
- "ghcr.io/ionos-cloud/{{.ProjectName}}/operator:{{.Tag}}"
- "ghcr.io/ionos-cloud/{{.ProjectName}}/operator"
build_flag_templates:
- "--pull"
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.title={{.ProjectName}}"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Version}}"
- "--build-arg=BINARY=operator-linux-amd64"
- "--platform=linux/amd64"
-
dockerfile: Dockerfile
goos: linux
goarch: amd64
ids:
- octopinger
image_templates:
- "ghcr.io/ionos-cloud/{{.ProjectName}}/octopinger:latest"
- "ghcr.io/ionos-cloud/{{.ProjectName}}/octopinger:{{.Tag}}"
- "ghcr.io/ionos-cloud/{{.ProjectName}}/octopinger"
build_flag_templates:
- "--pull"
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.title={{.ProjectName}}"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Version}}"
- "--build-arg=BINARY=octopinger-linux-amd64"
- "--platform=linux/amd64"
gomod:
proxy: false
release:
draft: false
extra_files:
- glob: ./manifests/install.yaml
snapshot:
name_template: "{{.Tag}}"
checksum:
name_template: "octopinger_go_checksums.txt"