Add earthly

This commit is contained in:
Ettore Di Giacinto 2022-09-09 15:00:54 +00:00
parent a9cd357d77
commit a7bc9b6f26
2 changed files with 30 additions and 0 deletions

View 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 }}

View 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"