quick fix
This commit is contained in:
parent
42d5e30135
commit
2f34a9aad3
@ -160,8 +160,6 @@ spec:
|
|||||||
\"auto_init\": true
|
\"auto_init\": true
|
||||||
}" || echo "Repository may already exist"
|
}" || echo "Repository may already exist"
|
||||||
|
|
||||||
sleep 5
|
|
||||||
|
|
||||||
# Clone the repository
|
# Clone the repository
|
||||||
git config --global http.sslVerify true
|
git config --global http.sslVerify true
|
||||||
git config --global user.email "backstage@osmos.io"
|
git config --global user.email "backstage@osmos.io"
|
||||||
@ -174,7 +172,7 @@ spec:
|
|||||||
git config --global credential.helper store
|
git config --global credential.helper store
|
||||||
printf "https://%s:%s@%s\n" "$GITEA_USER" "$ENCODED_PASSWORD" "$GITEA_HOST" > $HOME/.git-credentials
|
printf "https://%s:%s@%s\n" "$GITEA_USER" "$ENCODED_PASSWORD" "$GITEA_HOST" > $HOME/.git-credentials
|
||||||
|
|
||||||
REPO_URL="$GITEA_URL/giteaAdmin/$REPO_NAME.git"
|
REPO_URL="$GITEA_URL/$GITEA_USER/$REPO_NAME.git"
|
||||||
git clone "$REPO_URL" /tmp/repo 2>&1 || (cd /tmp/repo && git pull 2>&1)
|
git clone "$REPO_URL" /tmp/repo 2>&1 || (cd /tmp/repo && git pull 2>&1)
|
||||||
cd /tmp/repo
|
cd /tmp/repo
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user