Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
CI Templates
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Jira
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
IT Common Platform
tenant-support
CI Templates
Commits
bece0413
Commit
bece0413
authored
1 year ago
by
Michael Schulte
Browse files
Options
Downloads
Patches
Plain Diff
Anchor the version search in order to not pick up the version attribute of dependencies.
parent
e4556220
Branches
Branches containing commit
1 merge request
!59
Fix version check
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
building-blocks/helm.yml
+1
-1
1 addition, 1 deletion
building-blocks/helm.yml
with
1 addition
and
1 deletion
building-blocks/helm.yml
+
1
−
1
View file @
bece0413
...
...
@@ -7,7 +7,7 @@
script
:
-
git fetch -q
-
export HELM_CODE_UPDATED="false"
-
if [ $(git diff origin/$CI_DEFAULT_BRANCH Chart.yaml|grep version:|wc -l) -lt 2 ];then export VERSION_UPDATE="false";else export VERSION_UPDATE="true";fi
-
if [ $(git diff origin/$CI_DEFAULT_BRANCH Chart.yaml|grep
"^
version:
"
|wc -l) -lt 2 ];then export VERSION_UPDATE="false";else export VERSION_UPDATE="true";fi
-
if [ $(git diff origin/$CI_DEFAULT_BRANCH ':(exclude).gitlab-ci.yml' ':(exclude)renovate.json' ':(exclude)README.md' ':(exclude).helmignore' ':(exclude)tests/*'|wc -l) -gt 0 ]; then HELM_CODE_UPDATED="true";fi
-
if [ "$VERSION_UPDATE" == "false" ] && [ "$HELM_CODE_UPDATED" == "true" ] ;then echo "The Helm Chart version needs to be updated.";exit 1; fi
rules
:
...
...
This diff is collapsed.
Click to expand it.
Morgan Hoffman
@hoffmanm
mentioned in commit
4fc0a8d4
·
1 year ago
mentioned in commit
4fc0a8d4
mentioned in commit 4fc0a8d481525b120d62302b24f6c2bb3047ddb6
Toggle commit list
Morgan Hoffman
@hoffmanm
mentioned in merge request
!60 (merged)
·
1 year ago
mentioned in merge request
!60 (merged)
mentioned in merge request !60
Toggle commit list
Morgan Hoffman
@hoffmanm
mentioned in commit
f0e73590
·
1 year ago
mentioned in commit
f0e73590
mentioned in commit f0e73590a6239ab274e9f42d197bc3e5158dd5db
Toggle commit list
Preview
0%
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