Initial upload

This commit is contained in:
franz.germann 2025-04-30 14:16:33 +02:00
parent 7bbce4fbbc
commit 81d7fa143c
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}@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

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}@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\",