Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Helm
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
to be continuous...
Helm
Commits
32356cc3
Commit
32356cc3
authored
2 years ago
by
Bertrand Goareguer
Committed by
Pierre Smeyers
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
fix(deploy): deploy packaged chart instead of chart file (required for chart with dependencies)
parent
0121ffa7
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
templates/gitlab-ci-helm.yml
+5
-4
5 additions, 4 deletions
templates/gitlab-ci-helm.yml
with
5 additions
and
4 deletions
templates/gitlab-ci-helm.yml
+
5
−
4
View file @
32356cc3
...
...
@@ -455,16 +455,17 @@ stages:
helm_opts="$helm_opts --namespace $namespace"
fi
chart=${HELM_DEPLOY_CHART:-$HELM_CHART_DIR}
if [ -z "${chart}" ]; then
package=$(ls -1 ./helm_packages/*.tgz 2>/dev/null || echo "")
package=${package:-$HELM_DEPLOY_CHART}
if [ -z "${package}" ]; then
log_error "No Chart to deploy! Please use \\e[32m\$HELM_DEPLOY_CHART\\e[0m to deploy a chart from a repository"
log_error "Or check the provided variables to package your own chart!"
exit 1
fi
log_info "--- using \\e[32m
chart
\\e[0m: \\e[33;1m${
chart
}\\e[0m"
log_info "--- using \\e[32m
package
\\e[0m: \\e[33;1m${
package
}\\e[0m"
# shellcheck disable=SC2086
helm $helm_opts $HELM_DEPLOY_ARGS $environment_name $
chart
helm $helm_opts $HELM_DEPLOY_ARGS $environment_name $
package
# maybe execute post deploy script
postscript="$HELM_SCRIPTS_DIR/helm-post-deploy.sh"
...
...
This diff is collapsed.
Click to expand it.
Ghost User
@ghost
mentioned in commit
cfa6ad7e
·
2 years ago
mentioned in commit
cfa6ad7e
mentioned in commit cfa6ad7e8eaeec0cbef9f7f6b0b2379d8c8511d9
Toggle commit list
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment