From c8f70c48faea8ad6b5fe6f6864217be84845bf32 Mon Sep 17 00:00:00 2001 From: Pierre-Olivier Mercier Date: Wed, 18 Sep 2024 08:39:41 +0200 Subject: [PATCH] qa: Make gitlabBaseURL configurable through env --- qa/api/gitlab.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/qa/api/gitlab.go b/qa/api/gitlab.go index 5e863d92..20789aed 100644 --- a/qa/api/gitlab.go +++ b/qa/api/gitlab.go @@ -38,6 +38,10 @@ func init() { oidcRedirectURL = v } + if v, ok := os.LookupEnv("FIC_GITLAB_BASEURL"); ok { + gitlabBaseURL = v + } + flag.StringVar(&oidcRedirectURL, "oidc-redirect", oidcRedirectURL, "Base URL for the redirect after connection") flag.StringVar(&gitlabBaseURL, "gitlab-baseurl", gitlabBaseURL, "Base URL of the Gitlab instance") flag.StringVar(&gitlabClientID, "gitlab-clientid", os.Getenv("FIC_GITLAB_CLIENT_ID"), "ClientID for GitLab's OIDC")