Updated
This commit is contained in:
parent
7e8e09abd2
commit
1dcabdbe72
1 changed files with 15 additions and 1 deletions
|
|
@ -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."
|
||||
Loading…
Add table
Add a link
Reference in a new issue