updates sso jobs to use the cefor stacks-instances repository

This commit is contained in:
franz.germann 2025-04-30 11:31:27 +02:00
parent 3419b428ea
commit e903a49b29
2 changed files with 10 additions and 4 deletions

View file

@ -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}@{{{ .Env.DOMAIN_GITEA }}}/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://{{{ .Env.DOMAIN }}}/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

View file

@ -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}@{{{ .Env.DOMAIN_GITEA }}}/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\",