Compare commits
1 Commits
8334cd48f8
...
fix/myorg-
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0aeaa2b051 |
@@ -31,8 +31,12 @@ spec:
|
|||||||
- sh
|
- sh
|
||||||
- -c
|
- -c
|
||||||
- |
|
- |
|
||||||
|
# Normalize the repo URL host to the correct Gitea subdomain.
|
||||||
|
# The GIT_REPO_URL secret historically contained gitea.rogi.casa,
|
||||||
|
# which 526s through Cloudflare; the working subdomain is git.rogi.casa.
|
||||||
|
export GIT_REPO_URL="$(echo "${GIT_REPO_URL}" | sed -E 's#https?://[^/@]+@?gitea\.rogi\.casa#https://'"${GIT_USERNAME}"':'"${GIT_TOKEN}"'@git.rogi.casa#')"
|
||||||
if [ ! -d /data/myorg/.git ]; then
|
if [ ! -d /data/myorg/.git ]; then
|
||||||
echo "Cloning repository..."
|
echo "Cloning repository from ${GIT_REPO_URL}..."
|
||||||
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}"
|
||||||
|
|||||||
Reference in New Issue
Block a user