From 1fb22461ecec3b0b066fea085af990dc70771205 Mon Sep 17 00:00:00 2001 From: Andrii Riabchenko Date: Mon, 22 Jan 2024 18:33:45 +0200 Subject: [PATCH] new file: projects/github.com/yannh/kubeconform/package.yml --- .../github.com/yannh/kubeconform/package.yml | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 projects/github.com/yannh/kubeconform/package.yml diff --git a/projects/github.com/yannh/kubeconform/package.yml b/projects/github.com/yannh/kubeconform/package.yml new file mode 100644 index 00000000..64e09bc7 --- /dev/null +++ b/projects/github.com/yannh/kubeconform/package.yml @@ -0,0 +1,36 @@ +distributable: + url: git+https://github.com/yannh/kubeconform.git + ref: ${{version.tag}} + +versions: + github: yannh/kubeconform + +build: + dependencies: + go.dev: '>=1.21' + script: + - go build $ARGS -ldflags="$LDFLAGS" ./cmd/kubeconform + env: + ARGS: + - -trimpath + - -o={{prefix}}/bin/kubeconform + LDFLAGS: + - -s + - -w + - -X main.version={{version}} + linux: + LDFLAGS: + - -buildmode=pie + +provides: + - bin/kubeconform + +test: + dependencies: + curl.se: '*' + script: + - curl -L "https://raw.githubusercontent.com/yannh/kubeconform/master/fixtures/valid.yaml" -o valid.yaml + - kubeconform valid.yaml + - curl -L "https://raw.githubusercontent.com/yannh/kubeconform/master/fixtures/invalid.yaml" -o invalid.yaml + - kubeconform invalid.yaml | false || true + - kubeconform -v | grep {{version}} \ No newline at end of file