diff --git a/fngr/factory.c-one-infra.de/stacks/core/argocd/manifests/argocd-sso-config.yaml b/fngr/factory.c-one-infra.de/stacks/core/argocd/manifests/argocd-sso-config.yaml index 8402810..73bfbc0 100644 --- a/fngr/factory.c-one-infra.de/stacks/core/argocd/manifests/argocd-sso-config.yaml +++ b/fngr/factory.c-one-infra.de/stacks/core/argocd/manifests/argocd-sso-config.yaml @@ -29,6 +29,9 @@ spec: - | #! /bin/bash + CLIENT_REPO_ID=fngr + LOCAL_DOMAIN=factory.c-one-infra.de + apt -qq update apt -qq install git wget -y if [[ "$(uname -m)" == "x86_64" ]]; then @@ -44,8 +47,8 @@ spec: git config --global user.email "bot@bots.de" git config --global user.name "bot" - git clone https://${FORGEJO_USER}:${FORGEJO_TOKEN}@gitea.factory.c-one-infra.de/giteaAdmin/edfbuilder.git - cd edfbuilder + git clone https://${FORGEJO_USER}:${FORGEJO_TOKEN}@forgejo.edf-bootstrap.cx.fg1.ffm.osc.live/DevFW-CICD/stacks-instances.git + cd $(CLIENT_REPO_ID)/$(LOCAL_DOMAIN) yq eval '.configs.cm."oidc.config" = "name: Keycloak\nissuer: https://factory.c-one-infra.de/keycloak/realms/cnoe\nclientID: argocd\nclientSecret: $auth-generic-oauth-secret:client_secret\nrequestedScopes: [\"openid\", \"profile\", \"email\", \"groups\"]"' -i stacks/core/argocd/values.yaml git add stacks/core/argocd/values.yaml diff --git a/fngr/factory.c-one-infra.de/stacks/core/forgejo/manifests/forgejo-sso-config.yaml b/fngr/factory.c-one-infra.de/stacks/core/forgejo/manifests/forgejo-sso-config.yaml index c6a9b56..5de3353 100644 --- a/fngr/factory.c-one-infra.de/stacks/core/forgejo/manifests/forgejo-sso-config.yaml +++ b/fngr/factory.c-one-infra.de/stacks/core/forgejo/manifests/forgejo-sso-config.yaml @@ -29,6 +29,9 @@ spec: - | #! /bin/bash + CLIENT_REPO_ID=fngr + LOCAL_DOMAIN=factory.c-one-infra.de + apt -qq update apt -qq install git wget -y if [[ "$(uname -m)" == "x86_64" ]]; then @@ -44,8 +47,8 @@ spec: git config --global user.email "bot@bots.de" git config --global user.name "giteaAdmin" - git clone https://${FORGEJO_USER}:${FORGEJO_TOKEN}@gitea.factory.c-one-infra.de/giteaAdmin/edfbuilder.git - cd edfbuilder + git clone https://${FORGEJO_USER}:${FORGEJO_TOKEN}@forgejo.edf-bootstrap.cx.fg1.ffm.osc.live/DevFW-CICD/stacks-instances.git + cd $(CLIENT_REPO_ID)/$(LOCAL_DOMAIN) yq eval ".gitea.oauth = [ { \"name\": \"Keycloak\",