This commit is contained in:
Mani Marothu 2024-10-03 13:55:22 -07:00
parent 7e8e09abd2
commit 1dcabdbe72

View file

@ -25,4 +25,18 @@ Gitea
Password: ${gitea_password}
EOF
echo "credentials.txt file created with ArgoCD details."
echo "credentials.txt file created with ArgoCD details."
# Setting up gitconfig
git config --global user.name "CNOE"
git config --global user.email "cnoe@io"
GITEA_PAT=$(kubectl get secret gitea-token -n gitea -o jsonpath='{.data.token}' | base64 -d)
GIT_CREDS="$HOME/.git-credentials"
cat > $GIT_CREDS << EOT
https://giteaAdmin:${GITEA_PAT}@${IDE_DOMAIN}/gitea
EOT
git config --global credential.helper 'store'
echo "Git config update completed."