fix(ci): complete gitea→git rename in dev scripts + API base
Some checks failed
CI / skinny-install (aco) (push) Successful in 1m11s
CI / skinny-install (api) (push) Successful in 37s
CI / skinny-install (bcda) (push) Successful in 34s
CI / skinny-install (bib) (push) Successful in 31s
CI / skinny-install (bls) (push) Successful in 29s
CI / skinny-install (ccw) (push) Successful in 33s
CI / skinny-install (cli) (push) Successful in 33s
CI / skinny-install (cms) (push) Successful in 30s
CI / skinny-install (conf) (push) Successful in 32s
CI / skinny-install (opps) (push) Successful in 36s
CI / skinny-install (perf) (push) Successful in 37s
CI / lint-test (push) Has started running
CI / skinny-install (pfs) (push) Has started running
CI / skinny-install (rex) (push) Has been cancelled
Deploy / build-scan-report (push) Has been cancelled
Infra CI / notebooks (push) Has been cancelled
Infra CI / zotero (push) Has been cancelled
Infra CI / docs (push) Has been cancelled
Infra CI / api (push) Has been cancelled
Infra CI / mc (push) Has been cancelled
Some checks failed
CI / skinny-install (aco) (push) Successful in 1m11s
CI / skinny-install (api) (push) Successful in 37s
CI / skinny-install (bcda) (push) Successful in 34s
CI / skinny-install (bib) (push) Successful in 31s
CI / skinny-install (bls) (push) Successful in 29s
CI / skinny-install (ccw) (push) Successful in 33s
CI / skinny-install (cli) (push) Successful in 33s
CI / skinny-install (cms) (push) Successful in 30s
CI / skinny-install (conf) (push) Successful in 32s
CI / skinny-install (opps) (push) Successful in 36s
CI / skinny-install (perf) (push) Successful in 37s
CI / lint-test (push) Has started running
CI / skinny-install (pfs) (push) Has started running
CI / skinny-install (rex) (push) Has been cancelled
Deploy / build-scan-report (push) Has been cancelled
Infra CI / notebooks (push) Has been cancelled
Infra CI / zotero (push) Has been cancelled
Infra CI / docs (push) Has been cancelled
Infra CI / api (push) Has been cancelled
Infra CI / mc (push) Has been cancelled
- pkg_mirror_sync.py: read `git =` from stack.toml (was `gitea`), fallback http://git:3000 (was gitea:3000) - bootstrap_sso.py, backends/woodpecker.py, api/clients/base.py: all gitea:3000 → git:3000
This commit is contained in:
@@ -277,7 +277,7 @@ steps:
|
|||||||
- git add assets/icons/coverage.svg
|
- git add assets/icons/coverage.svg
|
||||||
- git diff --cached --quiet && echo "no change" && exit 0
|
- git diff --cached --quiet && echo "no change" && exit 0
|
||||||
- git commit -m "update coverage badge [skip ci]"
|
- git commit -m "update coverage badge [skip ci]"
|
||||||
- git push http://$REGISTRY_USER:$REGISTRY_PASS@gitea:3000/${{CI_REPO}}.git HEAD:main
|
- git push http://$REGISTRY_USER:$REGISTRY_PASS@git:3000/${{CI_REPO}}.git HEAD:main
|
||||||
when:
|
when:
|
||||||
- branch: main
|
- branch: main
|
||||||
event: push
|
event: push
|
||||||
@@ -382,7 +382,7 @@ steps:
|
|||||||
" REGISTRY_PASS:",
|
" REGISTRY_PASS:",
|
||||||
" from_secret: registry_pass",
|
" from_secret: registry_pass",
|
||||||
" commands:",
|
" commands:",
|
||||||
' - uv publish --publish-url http://gitea:3000/api/packages/${CI_REPO_OWNER}/pypi --username "$REGISTRY_USER" --password "$REGISTRY_PASS" dist/*',
|
' - uv publish --publish-url http://git:3000/api/packages/${CI_REPO_OWNER}/pypi --username "$REGISTRY_USER" --password "$REGISTRY_PASS" dist/*',
|
||||||
" depends_on:",
|
" depends_on:",
|
||||||
" - build-package",
|
" - build-package",
|
||||||
"",
|
"",
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ OAUTH_STATE = STATE / "oauth.json"
|
|||||||
OAUTH2_PROXY_ENV = STATE / "oauth2-proxy.env"
|
OAUTH2_PROXY_ENV = STATE / "oauth2-proxy.env"
|
||||||
|
|
||||||
DOMAIN = os.environ.get("DOMAIN", "fhirworx.io")
|
DOMAIN = os.environ.get("DOMAIN", "fhirworx.io")
|
||||||
GITEA_API = os.environ.get("GITEA_API", "http://gitea:3000/api/v1")
|
GITEA_API = os.environ.get("GITEA_API", "http://git:3000/api/v1")
|
||||||
ADMIN_USER = os.environ.get("WOODPECKER_ADMIN", "kert")
|
ADMIN_USER = os.environ.get("WOODPECKER_ADMIN", "kert")
|
||||||
ADMIN_PASS = os.environ.get("GITEA_ADMIN_PASSWORD", "")
|
ADMIN_PASS = os.environ.get("GITEA_ADMIN_PASSWORD", "")
|
||||||
|
|
||||||
|
|||||||
@@ -45,13 +45,14 @@ def _load_env() -> None:
|
|||||||
toml_file = ROOT / "stack.toml"
|
toml_file = ROOT / "stack.toml"
|
||||||
if toml_file.exists():
|
if toml_file.exists():
|
||||||
for line in toml_file.read_text().splitlines():
|
for line in toml_file.read_text().splitlines():
|
||||||
if line.strip().startswith("gitea"):
|
stripped = line.strip()
|
||||||
|
if stripped.startswith("git ") or stripped.startswith("git="):
|
||||||
parts = line.split("=", 1)
|
parts = line.split("=", 1)
|
||||||
if len(parts) == 2:
|
if len(parts) == 2:
|
||||||
GITEA_URL = parts[1].strip().strip('"').strip("'")
|
GITEA_URL = parts[1].strip().strip('"').strip("'")
|
||||||
break
|
break
|
||||||
if not GITEA_URL:
|
if not GITEA_URL:
|
||||||
GITEA_URL = "http://gitea:3000"
|
GITEA_URL = "http://git:3000"
|
||||||
|
|
||||||
|
|
||||||
def _api_via_docker(method: str, path: str, file_path: str = "") -> tuple[int, str]:
|
def _api_via_docker(method: str, path: str, file_path: str = "") -> tuple[int, str]:
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ class Client:
|
|||||||
Parameters
|
Parameters
|
||||||
----------
|
----------
|
||||||
base_url : str
|
base_url : str
|
||||||
API base URL (e.g. ``http://gitea:3000/api/v1``).
|
API base URL (e.g. ``http://git:3000/api/v1``).
|
||||||
max_retries : int
|
max_retries : int
|
||||||
Max retry attempts for transient errors.
|
Max retry attempts for transient errors.
|
||||||
retry_interval : float
|
retry_interval : float
|
||||||
|
|||||||
Reference in New Issue
Block a user