From 30dbfd4f3e15ccff68cfe9195339cabdacd76844 Mon Sep 17 00:00:00 2001 From: tannevaled Date: Sun, 31 May 2026 20:45:19 +0200 Subject: [PATCH] +opencost -- Kubernetes cost monitoring (CNCF sandbox) --- projects/opencost.io/package.yml | 35 ++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 projects/opencost.io/package.yml diff --git a/projects/opencost.io/package.yml b/projects/opencost.io/package.yml new file mode 100644 index 0000000000..e3776dc240 --- /dev/null +++ b/projects/opencost.io/package.yml @@ -0,0 +1,35 @@ +distributable: + url: https://github.com/opencost/opencost/archive/refs/tags/{{version.tag}}.tar.gz + strip-components: 1 + +versions: + github: opencost/opencost + +platforms: + - darwin + - linux + +provides: + - bin/opencost + +build: + dependencies: + go.dev: '*' + script: + - go mod download + - go build -trimpath -ldflags="$GO_LDFLAGS" -o '{{prefix}}/bin/opencost' ./cmd/costmodel + env: + CGO_ENABLED: 0 + GO_LDFLAGS: + - -s + - -w + - -extldflags "-static" + - -X github.com/opencost/opencost/core/pkg/version.Version=v{{version}} + - -X github.com/opencost/opencost/core/pkg/version.GitCommit=pkgx + linux: + GO_LDFLAGS: + - -buildmode=pie + +test: + script: + - opencost --help