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
47a1246d
Commit
47a1246d
authored
3 years ago
by
Pierre Smeyers
Browse files
Options
Downloads
Patches
Plain Diff
fix(publish): remove variable from rules:exists expression (unsupported)
parent
79835f82
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
+6
-5
6 additions, 5 deletions
templates/gitlab-ci-helm.yml
with
6 additions
and
5 deletions
templates/gitlab-ci-helm.yml
+
6
−
5
View file @
47a1246d
...
...
@@ -663,15 +663,16 @@ helm-publish:
stage
:
publish
script
:
-
helm ${TRACE+--debug} $(get_helm_config_opt) repo index $HELM_PUBLISH_DIR --url $HELM_PUBLISH_URL $HELM_PUBLISH_ARGS
rules
:
-
if
:
$CI_MERGE_REQUEST_ID || $HELM_PUBLISH_URL ==
null
|| $CI_COMMIT_REF_NAME !~ $PROD_REF
when
:
never
-
exists
:
-
$HELM_CHART_DIR/Chart.yaml
artifacts
:
expire_in
:
1 week
paths
:
-
$HELM_PUBLISH_DIR
rules
:
-
if
:
$CI_MERGE_REQUEST_ID || $HELM_PUBLISH_URL ==
null
|| $CI_COMMIT_REF_NAME !~ $PROD_REF
when
:
never
# /!\ variables can't be used in rules:exists
-
exists
:
-
"
**/Chart.yaml"
# Deploy job prototype
# Can be extended to define a concrete environment
...
...
This diff is collapsed.
Click to expand it.
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