Initial upload
This commit is contained in:
parent
7bbce4fbbc
commit
81d7fa143c
2 changed files with 10 additions and 4 deletions
|
@ -29,6 +29,9 @@ spec:
|
||||||
- |
|
- |
|
||||||
#! /bin/bash
|
#! /bin/bash
|
||||||
|
|
||||||
|
CLIENT_REPO_ID=fngr
|
||||||
|
LOCAL_DOMAIN=factory.c-one-infra.de
|
||||||
|
|
||||||
apt -qq update
|
apt -qq update
|
||||||
apt -qq install git wget -y
|
apt -qq install git wget -y
|
||||||
if [[ "$(uname -m)" == "x86_64" ]]; then
|
if [[ "$(uname -m)" == "x86_64" ]]; then
|
||||||
|
@ -44,8 +47,8 @@ spec:
|
||||||
git config --global user.email "bot@bots.de"
|
git config --global user.email "bot@bots.de"
|
||||||
git config --global user.name "bot"
|
git config --global user.name "bot"
|
||||||
|
|
||||||
git clone https://${FORGEJO_USER}:${FORGEJO_TOKEN}@gitea.factory.c-one-infra.de/giteaAdmin/edfbuilder.git
|
git clone https://${FORGEJO_USER}:${FORGEJO_TOKEN}@forgejo.edf-bootstrap.cx.fg1.ffm.osc.live/DevFW-CICD/stacks-instances.git
|
||||||
cd edfbuilder
|
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
|
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
|
git add stacks/core/argocd/values.yaml
|
||||||
|
|
|
@ -29,6 +29,9 @@ spec:
|
||||||
- |
|
- |
|
||||||
#! /bin/bash
|
#! /bin/bash
|
||||||
|
|
||||||
|
CLIENT_REPO_ID=fngr
|
||||||
|
LOCAL_DOMAIN=factory.c-one-infra.de
|
||||||
|
|
||||||
apt -qq update
|
apt -qq update
|
||||||
apt -qq install git wget -y
|
apt -qq install git wget -y
|
||||||
if [[ "$(uname -m)" == "x86_64" ]]; then
|
if [[ "$(uname -m)" == "x86_64" ]]; then
|
||||||
|
@ -44,8 +47,8 @@ spec:
|
||||||
git config --global user.email "bot@bots.de"
|
git config --global user.email "bot@bots.de"
|
||||||
git config --global user.name "giteaAdmin"
|
git config --global user.name "giteaAdmin"
|
||||||
|
|
||||||
git clone https://${FORGEJO_USER}:${FORGEJO_TOKEN}@gitea.factory.c-one-infra.de/giteaAdmin/edfbuilder.git
|
git clone https://${FORGEJO_USER}:${FORGEJO_TOKEN}@forgejo.edf-bootstrap.cx.fg1.ffm.osc.live/DevFW-CICD/stacks-instances.git
|
||||||
cd edfbuilder
|
cd $(CLIENT_REPO_ID)/$(LOCAL_DOMAIN)
|
||||||
yq eval ".gitea.oauth = [
|
yq eval ".gitea.oauth = [
|
||||||
{
|
{
|
||||||
\"name\": \"Keycloak\",
|
\"name\": \"Keycloak\",
|
||||||
|
|
Loading…
Reference in a new issue