forked from JovianX/helm-release-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplugin.yaml
More file actions
22 lines (18 loc) · 728 Bytes
/
plugin.yaml
File metadata and controls
22 lines (18 loc) · 728 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Name: release
version: 0.4.0
usage: pull or update Helm Releases
description: Update values of a releases, pull charts from releases
command: $HELM_PLUGIN_DIR/release.sh
hooks:
install: >
VERSION=$(curl --silent
"https://api.github.com/repos/mikefarah/yq/releases/latest" | jq -r
.tag_name)
OS="$(uname | tr '[:upper:]' '[:lower:]')"
case $OS in
darwin*) BINARY="yq_darwin_amd64" ;;
linux*) BINARY="yq_linux_amd64" ;;
*) printf '%s\n' "Unsupported operating system($OS) detected while installing yq." >&2;exit 1 ;;
esac
curl -L https://github.com/mikefarah/yq/releases/download/${VERSION}/${BINARY} -o $HELM_PLUGIN_DIR/lib/yq;
chmod +x $HELM_PLUGIN_DIR/lib/yq;