diff --git a/packages/utils/rancherd/build.yaml b/packages/utils/rancherd/build.yaml new file mode 100644 index 00000000000..a6ae99731fa --- /dev/null +++ b/packages/utils/rancherd/build.yaml @@ -0,0 +1,27 @@ +requires: +- name: "golang" + category: "build" + version: ">=0" +env: +- PATH=$PATH:/usr/local/go/bin +prelude: +{{ if .Values.distribution }} +{{if eq .Values.distribution "opensuse" }} +- zypper in -y git upx +{{else if eq .Values.distribution "fedora" }} +- dnf install -y git upx +{{else if eq .Values.distribution "ubuntu" }} +- apt-get install -y git upx +{{end}} +{{end}} +- | + PACKAGE_VERSION=v${PACKAGE_VERSION%\+*} && \ + git clone --depth=1 --branch ${PACKAGE_VERSION} https://github.com/rancher/rancherd +steps: +- | + cd ./rancherd && \ + ./scripts/build && \ + upx bin/rancherd && \ + cp bin/rancherd /usr/bin/ +includes: +- /usr/bin/rancherd \ No newline at end of file diff --git a/packages/utils/rancherd/definition.yaml b/packages/utils/rancherd/definition.yaml new file mode 100644 index 00000000000..b0907779e56 --- /dev/null +++ b/packages/utils/rancherd/definition.yaml @@ -0,0 +1,9 @@ +name: "rancherd" +category: "utils" +version: "0.0.1-alpha03" +arch: amd64 +platform: linux +labels: + github.repo: "rancherd" + github.owner: "rancher" + autobump.revdeps: "true"