fix: Don't use github if we have a full URL.

This commit is contained in:
Laur IVAN 2026-02-07 16:25:00 +01:00
parent 3431db2127
commit fa403b113e

View File

@ -25,7 +25,7 @@ spec:
url: "ssh://git@github.com/#{ repository_name }#.git"
pullSecret: github-deploy-key
#% else %#
url: "https://github.com/#{ repository_name }#.git"
url: "#{ repository_name if repository_name.startswith('https://') else 'https://github.com/' + repository_name + '.git' }#"
#% endif %#
ref: "refs/heads/#{ repository_branch }#"
path: kubernetes/flux/cluster