File tree Expand file tree Collapse file tree 4 files changed +44
-0
lines changed Expand file tree Collapse file tree 4 files changed +44
-0
lines changed Original file line number Diff line number Diff line change 1+ # Copyright 2025 The KCP Authors.
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+ # http://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+
115name : goreleaser
216
317on :
3145
3246 - name : Delete non-semver tags
3347 run : ' git tag -d $(git tag -l | grep -v "^v")'
48+
49+ - name : Set LDFLAGS
50+ run : echo LDFLAGS="$(make ldflags)" >> $GITHUB_ENV
3451
3552 - name : Run GoReleaser on tag
3653 if : github.event_name != 'pull_request'
Original file line number Diff line number Diff line change 11/_build /
2+ /dist /
23/_tools /
34/vendor /
45/.kcp.e2e /
Original file line number Diff line number Diff line change 1+ builds :
2+ - id : " api-syncagent"
3+ main : ./cmd/api-syncagent
4+ binary : api-syncagent
5+ ldflags :
6+ - " {{ .Env.LDFLAGS }}"
7+ goos :
8+ - linux
9+ - darwin
10+ goarch :
11+ - amd64
12+ - arm64
13+ env :
14+ - CGO_ENABLED=0
15+
16+ archives :
17+ - id : api-syncagent
18+ builds :
19+ - api-syncagent
20+
21+ release :
22+ draft : true
23+ mode : keep-existing
Original file line number Diff line number Diff line change @@ -30,6 +30,9 @@ GOOS ?= $(shell go env GOOS)
3030.PHONY : all
3131all : build test
3232
33+ ldflags :
34+ @echo $(LDFLAGS )
35+
3336.PHONY : build
3437build : $(CMD )
3538
You can’t perform that action at this time.
0 commit comments