UNCLASSIFIED - NO CUI

Skip to content
Snippets Groups Projects
Commit f3f65e71 authored by Branden Cobb's avatar Branden Cobb Committed by Micah Nagel
Browse files

SKIP UPGRADE Disable Nexus

parent 0d4229e8
No related branches found
No related tags found
1 merge request!927SKIP UPGRADE Disable Nexus
......@@ -5,6 +5,7 @@ set -ex
if [[ "${CI_COMMIT_BRANCH}" == "${CI_DEFAULT_BRANCH}" ]] || [[ ! -z "$CI_COMMIT_TAG" ]] || [[ $CI_MERGE_REQUEST_LABELS =~ "all-packages" ]]; then
echo "all-packages label enabled, or on default branch or tag, enabling all addons"
yq e ".addons.*.enabled = "true"" $CI_VALUES_FILE > tmpfile && mv tmpfile $CI_VALUES_FILE
yq e ".addons.nexus.enabled = "false"" $CI_VALUES_FILE > tmpfile && mv tmpfile $CI_VALUES_FILE
else
IFS=","
for package in $CI_MERGE_REQUEST_LABELS; do
......
......@@ -147,7 +147,7 @@ function wait_crd(){
## Append all add-ons to hr list if "all-packages" or default branch/tag. Else, add specific ci labels to hr list.
HELMRELEASES=(${CORE_HELMRELEASES[@]})
if [[ "${CI_COMMIT_BRANCH}" == "${CI_DEFAULT_BRANCH}" ]] || [[ ! -z "$CI_COMMIT_TAG" ]] || [[ $CI_MERGE_REQUEST_LABELS =~ "all-packages" ]]; then
HELMRELEASES+=(${ADD_ON_HELMRELEASES[@]})
HELMRELEASES+=(${ADD_ON_HELMRELEASES[@]/"nexus-repository-manager"})
echo "All helmreleases enabled: all-packages label enabled, or on default branch or tag."
elif [[ ! -z "$CI_MERGE_REQUEST_LABELS" ]]; then
IFS=","
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment