Skip to content

Commit

Permalink
Add rancherd
Browse files Browse the repository at this point in the history
Signed-off-by: Ettore Di Giacinto <[email protected]>
  • Loading branch information
mudler committed Jun 29, 2021
1 parent c1a7802 commit f057ff8
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
27 changes: 27 additions & 0 deletions packages/utils/rancherd/build.yaml
Original file line number Diff line number Diff line change
@@ -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
9 changes: 9 additions & 0 deletions packages/utils/rancherd/definition.yaml
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit f057ff8

Please sign in to comment.