diff --git a/packages/earthly/build.yaml b/packages/earthly/build.yaml new file mode 100644 index 0000000..e4672fe --- /dev/null +++ b/packages/earthly/build.yaml @@ -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 }} \ No newline at end of file diff --git a/packages/earthly/definition.yaml b/packages/earthly/definition.yaml new file mode 100644 index 0000000..1a38240 --- /dev/null +++ b/packages/earthly/definition.yaml @@ -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" \ No newline at end of file