diff options
author | Achilleas Pipinellis <axil@gitlab.com> | 2020-05-20 19:30:02 +0300 |
---|---|---|
committer | Achilleas Pipinellis <axil@gitlab.com> | 2020-05-20 19:30:02 +0300 |
commit | 2d372d7c29600bcd5037f617f4c5e2ceb3fa63c2 (patch) | |
tree | 2cd8d451c83edb7b183350627ed15327950ba95f /lib/task_helpers.rb | |
parent | 61b910f4fd80efe3f6bc02c65892d8a743b9e324 (diff) |
Check charts versions and replace branch variables
This is needed for the release:single raketask. It adds one
failsafe in case the charts version is not charts_versions.yaml.
It also replaces the branch variables in .gitlab-ci.yml with the
respective stable ones.
Diffstat (limited to 'lib/task_helpers.rb')
-rw-r--r-- | lib/task_helpers.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/task_helpers.rb b/lib/task_helpers.rb index 0cd13591..b3be0010 100644 --- a/lib/task_helpers.rb +++ b/lib/task_helpers.rb @@ -51,6 +51,11 @@ def git_workdir_dirty? !status.empty? end +def chart_version_added?(gitlab_version) + config = YAML.load_file('./content/_data/chart_versions.yaml') + config.key?(gitlab_version) +end + def chart_version(gitlab_version) config = YAML.load_file('./content/_data/chart_versions.yaml') |