This repository has been archived by the owner on Mar 6, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy path.goreleaser.yaml
138 lines (138 loc) · 3.42 KB
/
.goreleaser.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
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
project_name: kubecarrier
before:
release:
github:
owner: kubermatic
name: kubecarrier
prerelease: true
builds:
- &build-cli
id: kubecarrier
binary: kubecarrier
goos:
- linux
- windows
- darwin
goarch:
- amd64
- "386"
env:
- CGO_ENABLED=0
- GO111MODULE=on
main: cmd/kubectl-kubecarrier/main.go
ldflags: >
-s -w
-X k8c.io/kubecarrier/pkg/internal/version.Version={{.Tag}}
-X k8c.io/kubecarrier/pkg/internal/version.Branch={{.Tag}}
-X k8c.io/kubecarrier/pkg/internal/version.Commit={{.ShortCommit}}
-X k8c.io/kubecarrier/pkg/internal/version.BuildDate={{.Timestamp}}
- &build
<<: *build-cli
id: manager
binary: manager
goos:
- linux
goarch:
- amd64
main: cmd/manager/main.go
- <<: *build
id: operator
binary: operator
main: cmd/operator/main.go
- <<: *build
id: catapult
binary: catapult
main: cmd/catapult/main.go
- <<: *build
id: ferry
binary: ferry
main: cmd/ferry/main.go
- <<: *build
id: elevator
binary: elevator
main: cmd/elevator/main.go
- <<: *build
id: apiserver
binary: apiserver
main: cmd/apiserver/main.go
archives:
- id: kubecarrier
builds:
- kubecarrier
name_template: "{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}"
format: tar.gz
format_overrides:
- goos: windows
format: zip
checksum:
name_template: "{{ .ProjectName }}_checksums.txt"
algorithm: sha256
dockers:
- &docker
goos: linux
goarch: amd64
binaries:
- manager
builds:
- manager
image_templates:
- "quay.io/kubecarrier/manager:latest"
- "quay.io/kubecarrier/manager:{{ .Tag }}"
- "quay.io/kubecarrier/manager:v{{ .Major }}"
dockerfile: config/dockerfiles/manager.Dockerfile
build_flag_templates:
- "--pull"
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.name={{.ProjectName}}"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Version}}"
- <<: *docker
binaries:
- operator
builds:
- operator
image_templates:
- "quay.io/kubecarrier/operator:latest"
- "quay.io/kubecarrier/operator:{{ .Tag }}"
- "quay.io/kubecarrier/operator:v{{ .Major }}"
dockerfile: config/dockerfiles/operator.Dockerfile
- <<: *docker
binaries:
- catapult
builds:
- catapult
image_templates:
- "quay.io/kubecarrier/catapult:latest"
- "quay.io/kubecarrier/catapult:{{ .Tag }}"
- "quay.io/kubecarrier/catapult:v{{ .Major }}"
dockerfile: config/dockerfiles/catapult.Dockerfile
- <<: *docker
binaries:
- ferry
builds:
- ferry
image_templates:
- "quay.io/kubecarrier/ferry:latest"
- "quay.io/kubecarrier/ferry:{{ .Tag }}"
- "quay.io/kubecarrier/ferry:v{{ .Major }}"
dockerfile: config/dockerfiles/ferry.Dockerfile
- <<: *docker
binaries:
- elevator
builds:
- elevator
image_templates:
- "quay.io/kubecarrier/elevator:latest"
- "quay.io/kubecarrier/elevator:{{ .Tag }}"
- "quay.io/kubecarrier/elevator:v{{ .Major }}"
dockerfile: config/dockerfiles/elevator.Dockerfile
- <<: *docker
binaries:
- apiserver
builds:
- apiserver
image_templates:
- "quay.io/kubecarrier/apiserver:latest"
- "quay.io/kubecarrier/apiserver:{{ .Tag }}"
- "quay.io/kubecarrier/apiserver:v{{ .Major }}"
dockerfile: config/dockerfiles/apiserver.Dockerfile