Skip to content
This repository has been archived by the owner on Aug 28, 2023. It is now read-only.

Commit

Permalink
helm: Add build and push helper script
Browse files Browse the repository at this point in the history
  • Loading branch information
tolbrino committed Jul 31, 2023
1 parent a1de3cb commit 602f811
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,6 @@ dump.rdb
**/venv

*.DS_Store*

# helm packages
safe-client-gateway-*.tgz
15 changes: 15 additions & 0 deletions scripts/build-and-push-helm-chart.sh
Original file line number Diff line number Diff line change
@@ -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 <version> missing"}
: ${1:?"2nd parameter <repository> missing"}

declare version repository
version="${1}"
repository="${2}"

helm package charts/safe-client-gateway --version "${version}"

helm push "safe-client-gateway-${version}.tgz" "${repository}"

0 comments on commit 602f811

Please sign in to comment.