forked from karmada-io/karmada
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Poor12 <[email protected]>
- Loading branch information
Poor12
committed
May 28, 2022
1 parent
58bc776
commit fafaa77
Showing
3 changed files
with
37 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
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,28 @@ | ||
#!/usr/bin/env bash | ||
set -o errexit | ||
set -o nounset | ||
set -o pipefail | ||
|
||
REPO_ROOT=$(dirname "${BASH_SOURCE[0]}")/.. | ||
source "${REPO_ROOT}"/hack/util.sh | ||
|
||
version=$1 | ||
|
||
release_dir="${REPO_ROOT}/_output/release" | ||
tar_file="karmada-chart-${version}.tgz" | ||
mkdir -p "${release_dir}" | ||
|
||
# install helm | ||
echo -n "Preparing: 'helm' existence check - " | ||
if util::cmd_exist helm; then | ||
echo "passed" | ||
else | ||
echo "installing helm" | ||
util::install_helm | ||
fi | ||
|
||
echo "Starting to package into a Karmada chart archive" | ||
helm package ./charts --version "${version}" -d "${release_dir}" | ||
cd "${release_dir}" | ||
mv "karmada-${version}.tgz" ${tar_file} | ||
sha256sum "${tar_file}" > "${tar_file}.sha256" |
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