git init script
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user