mirror of
https://github.com/kairos-io/packages.git
synced 2025-08-11 04:42:21 +00:00
Add goreleaser
This commit is contained in:
parent
3265bd6927
commit
c49e3807e9
16
packages/goreleaser/build.yaml
Normal file
16
packages/goreleaser/build.yaml
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
requires:
|
||||||
|
- name: "toolchain-go"
|
||||||
|
category: "development"
|
||||||
|
version: ">=1.18"
|
||||||
|
prelude:
|
||||||
|
- mkdir go/src/github.com/${GITHUB_ORG}/ -p
|
||||||
|
- cd go/src/github.com/${GITHUB_ORG}/ && git clone https://github.com/${GITHUB_ORG}/{{ .Values.name }}.git
|
||||||
|
env:
|
||||||
|
- GOPATH=/luetbuild/go/
|
||||||
|
- GITHUB_ORG={{ ( index .Values.labels "github.owner" ) }}
|
||||||
|
- CGO_ENABLED=0
|
||||||
|
steps:
|
||||||
|
- cd go/src/github.com/${GITHUB_ORG}/{{ .Values.name }}/ && git checkout v"${PACKAGE_VERSION}" -b build && go build -o {{.Values.name}} && mv {{ .Values.name }} /usr/bin/{{ .Values.name }}
|
||||||
|
- chmod +x /usr/bin/{{ .Values.name }}
|
||||||
|
includes:
|
||||||
|
- /usr/bin/{{.Values.name}}
|
10
packages/goreleaser/definition.yaml
Normal file
10
packages/goreleaser/definition.yaml
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
name: goreleaser
|
||||||
|
category: utils
|
||||||
|
version: "1.10.3"
|
||||||
|
description: "Deliver Go binaries as fast and easily as possible"
|
||||||
|
labels:
|
||||||
|
github.repo: "goreleaser"
|
||||||
|
github.owner: "goreleaser"
|
||||||
|
uri:
|
||||||
|
- https://github.com/goreleaser/goreleaser
|
||||||
|
license: "The MIT License"
|
Loading…
Reference in New Issue
Block a user