uses the new secrets for 'git clone'-command
This commit is contained in:
parent
0e26cc9a3f
commit
9dd9184cfd
2 changed files with 3 additions and 3 deletions
|
@ -61,7 +61,7 @@ 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://${GIT_USERNAME}:${GIT_PASSWORD}@gitea-${DOMAIN}/giteaAdmin/edfbuilder.git
|
git clone https://${FORGEJO_USER}:${GIT_PASSWORD}@gitea-${DOMAIN}/giteaAdmin/edfbuilder.git
|
||||||
cd edfbuilder
|
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
|
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
|
||||||
|
|
||||||
|
|
|
@ -21,7 +21,7 @@ spec:
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: auth-generic-oauth-secret
|
name: auth-generic-oauth-secret
|
||||||
key: client_secret
|
key: secret
|
||||||
- name: FORGEJO_USER
|
- name: FORGEJO_USER
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
|
@ -66,7 +66,7 @@ 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://${GIT_USERNAME}:${GIT_PASSWORD}@gitea-${DOMAIN}/giteaAdmin/edfbuilder.git
|
git clone https://${FORGEJO_USER}:${FORGEJO_TOKEN}@gitea-${DOMAIN}/giteaAdmin/edfbuilder.git
|
||||||
cd edfbuilder
|
cd edfbuilder
|
||||||
yq eval ".gitea.oauth = [
|
yq eval ".gitea.oauth = [
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue