Skip to content

Commit

Permalink
add retries for chart releaser
Browse files Browse the repository at this point in the history
  • Loading branch information
nammn committed Jul 16, 2024
1 parent 9289383 commit 07d5346
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/actions/releaser/cr.sh
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ check_charts_released() {
fi
echo "Retrying in ${delay} seconds... ($((i+1))/$retries)"
sleep "${delay}"
helm repo update mongodb
update_helm_repo
done

if [ "$released" = false ]; then
Expand Down Expand Up @@ -130,9 +130,13 @@ read_chart_version() {
awk '/^version: /{print $2}' "$chart_path/Chart.yaml"
}

update_helm_repo(){
helm repo update mongodb
}

prepare_helm_repo() {
helm repo add mongodb https://mongodb.github.io/helm-charts
helm repo update mongodb
update_helm_repo
}

chart_released() {
Expand Down

0 comments on commit 07d5346

Please sign in to comment.