From 3f552bebd0f3db8054276fd2405f2aa801ad84a5 Mon Sep 17 00:00:00 2001 From: Arthur Berezin Date: Wed, 17 Aug 2022 22:06:23 +0000 Subject: [PATCH] ci: update version to v0.3.2 --- plugin.yaml | 51 +++++++++++++++++++++------------------------------ 1 file changed, 21 insertions(+), 30 deletions(-) diff --git a/plugin.yaml b/plugin.yaml index 4c0ed76..1265552 100644 --- a/plugin.yaml +++ b/plugin.yaml @@ -1,31 +1,22 @@ -# Copyright 2022 JovianX Ltd. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -Name: "release" -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" +Name: release +version: 0.3.2 +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; + 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;