From 602f811f455c75d221e5952fed5b9040c539fb63 Mon Sep 17 00:00:00 2001 From: Tino Breddin Date: Mon, 31 Jul 2023 11:14:12 +0200 Subject: [PATCH] helm: Add build and push helper script --- .gitignore | 3 +++ scripts/build-and-push-helm-chart.sh | 15 +++++++++++++++ 2 files changed, 18 insertions(+) create mode 100755 scripts/build-and-push-helm-chart.sh diff --git a/.gitignore b/.gitignore index eba7e40ee..2b811e874 100644 --- a/.gitignore +++ b/.gitignore @@ -18,3 +18,6 @@ dump.rdb **/venv *.DS_Store* + +# helm packages +safe-client-gateway-*.tgz diff --git a/scripts/build-and-push-helm-chart.sh b/scripts/build-and-push-helm-chart.sh new file mode 100755 index 000000000..1859a73c5 --- /dev/null +++ b/scripts/build-and-push-helm-chart.sh @@ -0,0 +1,15 @@ +#!/usr/bin/env bash + +# exit on errors, undefined variables, ensure errors in pipes are not hidden +set -Eeuo pipefail + +: ${1:?"1st parameter missing"} +: ${1:?"2nd parameter missing"} + +declare version repository +version="${1}" +repository="${2}" + +helm package charts/safe-client-gateway --version "${version}" + +helm push "safe-client-gateway-${version}.tgz" "${repository}"