Initial revision

This commit is contained in:
2022-10-05 23:22:10 +02:00
commit 61bbe17e1e
8 changed files with 105 additions and 0 deletions

11
scripts/download_plugin.sh Executable file
View File

@@ -0,0 +1,11 @@
#!/bin/bash
set -ue
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
RELEASE_URL=$(curl -s https://api.github.com/repos/form3tech-oss/vault-plugin-secrets-grafanacloud/releases/latest | \
jq --raw-output '.assets[] | select(.content_type=="application/octet-stream") | .browser_download_url')
PLUGIN=$SCRIPT_DIR/../plugins/vault-plugin-secrets-grafanacloud
curl -L -o $PLUGIN $RELEASE_URL
chmod +x $PLUGIN