From dcbe27095192db6faa0d5360f489cbf17c636135 Mon Sep 17 00:00:00 2001 From: tannevaled Date: Fri, 7 Jun 2024 19:04:34 +0200 Subject: [PATCH] +github.com/cloudbase/garm-provider-openstack (#6362) * +github.com/cloudbase/garm-provider-openstack * style --------- Co-authored-by: Jacob Heider --- .../garm-provider-openstack/package.yml | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 projects/github.com/cloudbase/garm-provider-openstack/package.yml diff --git a/projects/github.com/cloudbase/garm-provider-openstack/package.yml b/projects/github.com/cloudbase/garm-provider-openstack/package.yml new file mode 100644 index 00000000..c9a7d14c --- /dev/null +++ b/projects/github.com/cloudbase/garm-provider-openstack/package.yml @@ -0,0 +1,27 @@ +distributable: + url: https://github.com/cloudbase/garm-provider-openstack/archive/refs/tags/{{version.tag}}.tar.gz + strip-components: 1 + +display-name: cloudbase/garm-provider-openstack + +versions: + github: cloudbase/garm-provider-openstack/tags + +build: + dependencies: + go.dev: ^1.20 + env: + CGO_ENABLED: 0 + GO_LDFLAGS: + - -s + - -w + - -X main.Version={{ version }} + linux: + LDFLAGS: + - -buildmode=pie + script: go build -v -ldflags="${GO_LDFLAGS}" -o "{{ prefix }}"/bin/garm-provider-openstack + +provides: + - bin/garm-provider-openstack + +test: test "$(garm-provider-openstack --version)" = {{version}}