uses the new secrets for 'git clone'-command

This commit is contained in:
franz.germann 2025-04-17 14:31:56 +02:00
parent 0e26cc9a3f
commit 9dd9184cfd
2 changed files with 3 additions and 3 deletions

View file

@ -61,7 +61,7 @@ spec:
git config --global user.email "bot@bots.de"
git config --global user.name "bot"
git clone https://${GIT_USERNAME}:${GIT_PASSWORD}@gitea-${DOMAIN}/giteaAdmin/edfbuilder.git
git clone https://${FORGEJO_USER}:${GIT_PASSWORD}@gitea-${DOMAIN}/giteaAdmin/edfbuilder.git
cd edfbuilder
yq eval '.configs.cm."oidc.config" = "name: Keycloak\nissuer: https://192-168-197-2.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

View file

@ -21,7 +21,7 @@ spec:
valueFrom:
secretKeyRef:
name: auth-generic-oauth-secret
key: client_secret
key: secret
- name: FORGEJO_USER
valueFrom:
secretKeyRef:
@ -66,7 +66,7 @@ spec:
git config --global user.email "bot@bots.de"
git config --global user.name "giteaAdmin"
git clone https://${GIT_USERNAME}:${GIT_PASSWORD}@gitea-${DOMAIN}/giteaAdmin/edfbuilder.git
git clone https://${FORGEJO_USER}:${FORGEJO_TOKEN}@gitea-${DOMAIN}/giteaAdmin/edfbuilder.git
cd edfbuilder
yq eval ".gitea.oauth = [
{