Skip to content

Commit

Permalink
Merge branch '14-replace-wget-with-curl-and-add-version-os-detection'…
Browse files Browse the repository at this point in the history
… of github.com:gangadharjannu/helm-release-plugin into gangadharjannu-14-replace-wget-with-curl-and-add-version-os-detection
  • Loading branch information
rtpro committed Aug 14, 2022
2 parents 17976a4 + 6daea3c commit 44b217c
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions plugin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,18 @@
# limitations under the License.

Name: "release"
version: "0.3.0"
version: "0.3.1"
usage: "pull or update Helm Releases"
description: |-
Update values of a releases, pull charts from releases
command: "$HELM_PLUGIN_DIR/release.sh"
hooks:
install: |
wget https://github.com/mikefarah/yq/releases/download/v4.25.3/yq_linux_amd64 -O $HELM_PLUGIN_DIR/lib/yq;
chmod +x $HELM_PLUGIN_DIR/lib/yq;
install: |
VERSION=$(curl --silent "https://api.github.com/repos/mikefarah/yq/releases/latest" | jq -r .tag_name)
case "$OSTYPE" in
darwin*) BINARY="yq_darwin_amd64" ;;
linux*) BINARY="yq_linux_amd64" ;;
*) printf '%s\n' "Unsupported operating system 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;

0 comments on commit 44b217c

Please sign in to comment.