-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
CSE Scan job tries to download module from PROD_REGISTRY
instead of DEV_REGISTRY
if branch has dots in the name (release-1.4
, for example)
++ echo
++ echo =======================================================
++ echo
++ echo '$ echo "Setting up registry path for module" # collapsed multi-line command'
++ echo 'Setting up registry path for module'
++ PROD_REGISTRY_MODULE_BASEDIR=registry.deckhouse.io/deckhouse/fe/modules
++ DEV_REGISTRY_MODULE_BASEDIR=dev-registry.deckhouse.io/sys/deckhouse-oss/modules
++ severity=UNKNOWN,LOW,MEDIUM,HIGH,CRITICAL
++ latest_releases_amount=3
++ '[' -z release-1.4 ']'
++ '[' -n '' ']'
++ module_tags=("${TAG}")
++ '[' push == schedule ']'
++ echo 'Getting tags to scan'
++ echo release-1.4
++ grep -q '[0-9]*\.[0-9]*'
++ module_tags=($(crane ls "${PROD_REGISTRY_MODULE_BASEDIR}/${MODULE_NAME}" | grep "^v${TAG}\.[0-9]*" | sort -V -r | head -n 1))
+++ grep '^vrelease-1.4\.[0-9]*'
+++ crane ls registry.deckhouse.io/deckhouse/fe/modules/commander-agent
+++ sort -V -r
+++ head -n 1
Metadata
Metadata
Assignees
Labels
No labels