git init script

This commit is contained in:
Roger Oriol
2026-02-10 23:49:54 +01:00
parent a0976f4731
commit 4fa91f8724

View File

@@ -27,9 +27,9 @@ spec:
git clone ${GIT_REPO_URL} /data/myorg git clone ${GIT_REPO_URL} /data/myorg
cd /data/myorg cd /data/myorg
git config user.name "${GIT_USERNAME}" git config user.name "${GIT_USERNAME}"
git config user.email "${GIT_USERNAME}@users.noreply.github.com" git config user.email "${GIT_USERNAME}@rogi.casa"
git config credential.helper store git config credential.helper store
echo "https://${GIT_USERNAME}:${GIT_TOKEN}@github.com" > ~/.git-credentials echo "https://${GIT_USERNAME}:${GIT_TOKEN}@gitea.rogi.casa" > ~/.git-credentials
else else
echo "Repository already exists, pulling latest changes..." echo "Repository already exists, pulling latest changes..."
cd /data/myorg cd /data/myorg