Skip to content

Commit 9880881

Browse files
Tassatuxplaffitt
authored andcommitted
fix(ci): Helm jobs trigger
1 parent 70c12b5 commit 9880881

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.gitlab-ci.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ helm template test:
2424
rules:
2525
- if: $CI_COMMIT_BRANCH
2626
changes:
27-
- helm/cache-registry
27+
paths:
28+
- helm/cache-registry/**/*
2829
before_script:
2930
- helm version
3031
script:
@@ -77,7 +78,7 @@ publish-helm:
7778
stage: release
7879
image: dtzar/helm-kubectl:${HELM_VERSION}
7980
variables:
80-
HELM_CHARTS_PATH: helm/
81+
HELM_CHARTS_PATH: helm
8182
CHART: cache-registry
8283
before_script:
8384
- helm repo add --username=${HELM_USERNAME} --password=${HELM_PASSWORD} ${HELM_CHART_REPO_NAME} ${HELM_CHART_REPO_URL}/${HELM_CHART_REPO_PROJECT}
@@ -87,6 +88,7 @@ publish-helm:
8788
- helm package ${HELM_CHARTS_PATH}/${CHART} --destination=dist/
8889
- helm cm-push dist/* ${HELM_CHART_REPO_NAME}
8990
rules:
90-
- if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH'
91+
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
9192
changes:
92-
- ${HELM_CHARTS_PATH}/${CHART}/Chart.yaml
93+
paths:
94+
- ${HELM_CHARTS_PATH}/${CHART}/Chart.yaml

0 commit comments

Comments
 (0)