@@ -16,28 +16,50 @@ before:
1616 - go generate ./...
1717
1818builds :
19- - binary : buildkite-mcp-server
19+ - id : buildkite-mcp-server
20+ binary : buildkite-mcp-server
2021 main : ./cmd/buildkite-mcp-server/main.go
2122 env :
2223 - CGO_ENABLED=0
2324 goos :
2425 - linux
2526 - windows
2627 - darwin
27-
28- dockers :
29- - image_templates :
30- - " buildkite/buildkite-mcp-server:{{ .Version }}"
31- - " buildkite/buildkite-mcp-server:latest"
32- dockerfile : Dockerfile
33- build_flag_templates :
34- - " --pull"
35- - " --label=org.opencontainers.image.created={{.Date}}"
36- - " --label=org.opencontainers.image.title={{.ProjectName}}"
37- - " --label=org.opencontainers.image.revision={{.FullCommit}}"
38- - " --label=org.opencontainers.image.version={{.Version}}"
39- use : buildx
40-
28+ goarch :
29+ - amd64
30+ - arm64
31+ goamd64 :
32+ - v2
33+ ldflags :
34+ - -s -w -X main.version={{.Version}}
35+ flags :
36+ - -trimpath
37+ kos :
38+ - repositories :
39+ - ghcr.io/buildkie/buildkite-mcp-server
40+ build : buildkite-mcp-server
41+ main : ./cmd/buildkite-mcp-server/
42+ creation_time : " {{.CommitTimestamp}}"
43+ base_image : ' cgr.dev/chainguard/static:latest@sha256:1ff7590cbc50eaaa917c34b092de0720d307f67d6d795e4f749a0b80a2e95a2c'
44+ tags :
45+ - ' {{.Version}}'
46+ - latest
47+ labels :
48+ org.opencontainers.image.authors : Buildkite Inc. https://buildkite.com
49+ org.opencontainers.image.source : https://github.com/buildkite/buildkite-mcp-server
50+ org.opencontainers.image.created : " {{.Date}}"
51+ org.opencontainers.image.title : " {{.ProjectName}}"
52+ org.opencontainers.image.revision : " {{.FullCommit}}"
53+ org.opencontainers.image.version : " {{.Version}}"
54+ bare : true
55+ preserve_import_paths : false
56+ # FIXME: We use GOOS and -split in our pipeline which is causing issues with the ko integration
57+ # so we disable it here when the GOOS is set to something other than linux. This avoids
58+ # the ko build to fail when running on macos or windows.
59+ disable : ' {{ and (isEnvSet "GOOS") (ne .Env.GOOS "linux") }}'
60+ platforms :
61+ - linux/amd64
62+ - linux/arm64
4163archives :
4264 - formats : ["tar.gz"]
4365 # this name template makes the OS and Arch compatible with the results of `uname`.
0 commit comments