Skip to content

Commit 64c4f5f

Browse files
authored
Revert gitea curl address to localhost (#348)
Signed-off-by: Fiachra Corcoran <fiachra.corcoran@est.tech>
1 parent 496d8b4 commit 64c4f5f

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

scripts/install-dev-gitea-setup.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,10 @@ kubectl wait pod --all --for=condition=Ready --namespace=gitea --timeout=90s
6666
###############################################################
6767

6868
h1 Create git repos in gitea
69-
curl -v -k -H "content-type: application/json" "http://nephio:secret@${gitea_ip}:3000/api/v1/user/repos" --data "{\"name\":\"$git_repo_name\"}"
69+
curl -v -k -H "content-type: application/json" "http://nephio:secret@localhost:3000/api/v1/user/repos" --data "{\"name\":\"$git_repo_name\"}"
7070
TMP_DIR=$(mktemp -d)
7171
cd "$TMP_DIR"
72-
git clone "http://nephio:secret@${gitea_ip}:3000/nephio/$git_repo_name.git"
72+
git clone "http://nephio:secret@localhost:3000/nephio/$git_repo_name.git"
7373
cd "$git_repo_name"
7474
if ! git rev-parse -q --verify refs/remotes/origin/main >/dev/null; then
7575
echo "Add main branch to git repo:"
@@ -86,15 +86,15 @@ cd "${git_root}"
8686
rm -fr "$TMP_DIR"
8787

8888
test_git_repo_name="test-blueprints"
89-
curl -v -k -H "content-type: application/json" "http://nephio:secret@${gitea_ip}:3000/api/v1/user/repos" --data "{\"name\":\"$test_git_repo_name\"}"
89+
curl -v -k -H "content-type: application/json" "http://nephio:secret@localhost:3000/api/v1/user/repos" --data "{\"name\":\"$test_git_repo_name\"}"
9090
TMP_DIR=$(mktemp -d)
9191
cd "$TMP_DIR"
9292
git clone "${git_root}/test/pkgs/test-pkgs/test-blueprints.bundle" -b main
9393
cd "$test_git_repo_name"
9494

9595
git gc
9696
git remote rename origin upstream
97-
git remote add origin "http://nephio:secret@${gitea_ip}:3000/nephio/$test_git_repo_name"
97+
git remote add origin "http://nephio:secret@localhost:3000/nephio/$test_git_repo_name"
9898
git push -u origin --all
9999
git push -u origin --tags
100100

0 commit comments

Comments
 (0)