This repository has been archived by the owner on Aug 28, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
helm: Add build and push helper script
- Loading branch information
Showing
2 changed files
with
18 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,3 +18,6 @@ dump.rdb | |
**/venv | ||
|
||
*.DS_Store* | ||
|
||
# helm packages | ||
safe-client-gateway-*.tgz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}" |