1+ # Copyright 2023 Google LLC
2+ #
3+ # Licensed under the Apache License, Version 2.0 (the "License");
4+ # you may not use this file except in compliance with the License.
5+ # You may obtain a copy of the License at
6+ #
7+ # https://www.apache.org/licenses/LICENSE-2.0
8+ #
9+ # Unless required by applicable law or agreed to in writing, software
10+ # distributed under the License is distributed on an "AS IS" BASIS,
11+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+ # See the License for the specific language governing permissions and
13+ # limitations under the License.
14+
15+ before :
16+ hooks :
17+ - go mod tidy
18+ builds :
19+ - id : kube-startup-cpu-boost
20+ main : ./cmd
21+ binary : manager
22+ env :
23+ - CGO_ENABLED=0
24+ mod_timestamp : " {{ .CommitTimestamp }}"
25+ flags :
26+ - -trimpath
27+ ldflags :
28+ - " -s -w"
29+ goos :
30+ - linux
31+ goarch :
32+ - amd64
33+ hooks :
34+ pre :
35+ - cmd : make manifests generate
36+ post :
37+ - cmd : make release IMG=ghcr.io/google/{{ .ProjectName }}:{{ .Tag }} MANIFESTS=manifests.yaml
38+ dockers :
39+ - goos : linux
40+ goarch : amd64
41+ dockerfile : goreleaser.dockerfile
42+ image_templates :
43+ - " ghcr.io/google/{{ .ProjectName }}:latest"
44+ - " ghcr.io/google/{{ .ProjectName }}:{{ .Tag }}"
45+ - " ghcr.io/google/{{ .ProjectName }}:{{ .ShortCommit }}"
46+ archives :
47+ - format : zip
48+ name_template : " {{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
49+ builds :
50+ - kube-startup-cpu-boost
51+ files :
52+ - LICENSE*
53+ - README*
54+ checksum :
55+ name_template : " {{ .ProjectName }}_{{ .Version }}_SHA256SUMS"
56+ algorithm : sha256
57+ release :
58+ # If you want to manually examine the release before its live, uncomment this line:
59+ # draft: true
60+ extra_files :
61+ - glob : ./manifests.yaml
62+ changelog :
63+ skip : true
0 commit comments