mirror of
https://github.com/kairos-io/packages.git
synced 2025-08-24 16:48:32 +00:00
Add earthly
This commit is contained in:
parent
a9cd357d77
commit
a7bc9b6f26
19
packages/earthly/build.yaml
Normal file
19
packages/earthly/build.yaml
Normal file
@ -0,0 +1,19 @@
|
||||
|
||||
{{ if eq .Values.arch "arm" }}
|
||||
{{ else }}
|
||||
requires:
|
||||
- name: "toolchain-go"
|
||||
category: "development"
|
||||
version: ">=0"
|
||||
prelude:
|
||||
- wget https://github.com/$GITHUB_OWNER/$GITHUB_REPO/releases/download/v{{.Values.version}}/{{.Values.name}}-linux-{{.Values.arch}} -O earthly
|
||||
env:
|
||||
- GITHUB_OWNER={{ ( index .Values.labels "github.owner" ) }}
|
||||
- GITHUB_REPO={{ ( index .Values.labels "github.repo" ) }}
|
||||
steps:
|
||||
- |
|
||||
mv {{ .Values.name }} /usr/bin/{{ .Values.name }}
|
||||
- chmod +x /usr/bin/{{ .Values.name }}
|
||||
includes:
|
||||
- /usr/bin/{{.Values.name}}
|
||||
{{ end }}
|
11
packages/earthly/definition.yaml
Normal file
11
packages/earthly/definition.yaml
Normal file
@ -0,0 +1,11 @@
|
||||
name: earthly
|
||||
category: utils
|
||||
arch: "amd64"
|
||||
version: "0.6.19"
|
||||
labels:
|
||||
github.repo: "earthly"
|
||||
github.owner: "earthly"
|
||||
uri:
|
||||
- https://github.com/earthly/earthly
|
||||
license: "MPL License"
|
||||
description: "The effortless CI/CD framework that runs anywhere"
|
Loading…
Reference in New Issue
Block a user