mirror of
https://hubproxy.babadafafafafa.cn/https://github.com/khuedoan/homelab.git
synced 2026-09-20 08:03:58 +08:00
chore(gitea)!: ugrade Helm chart to v10
This is a breaking change, see https://gitea.com/gitea/helm-chart#upgrading before upgrading to avoid losing data. Personally I have my repos saved in many Git hosting providers so I just nuke it and reinstall. Fixes changed files detection in pull_request event in Woodpecker.
This commit is contained in:
@@ -3,5 +3,5 @@ name: gitea
|
|||||||
version: 0.0.0
|
version: 0.0.0
|
||||||
dependencies:
|
dependencies:
|
||||||
- name: gitea
|
- name: gitea
|
||||||
version: 5.0.3
|
version: 10.0.2
|
||||||
repository: https://dl.gitea.io/charts/
|
repository: https://dl.gitea.io/charts/
|
||||||
|
|||||||
@@ -75,6 +75,7 @@ def setup_gitea_access_token(name: str) -> None:
|
|||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
def setup_gitea_oauth_app(name: str, redirect_uri: str) -> None:
|
def setup_gitea_oauth_app(name: str, redirect_uri: str) -> None:
|
||||||
|
# TODO use the new global application, while it's there in the UI, there's no API yet.
|
||||||
current_apps = requests.get(
|
current_apps = requests.get(
|
||||||
url=f"{gitea_url}/api/v1/user/applications/oauth2",
|
url=f"{gitea_url}/api/v1/user/applications/oauth2",
|
||||||
).json()
|
).json()
|
||||||
@@ -87,7 +88,8 @@ def setup_gitea_oauth_app(name: str, redirect_uri: str) -> None:
|
|||||||
},
|
},
|
||||||
data=json.dumps({
|
data=json.dumps({
|
||||||
'name': name,
|
'name': name,
|
||||||
'redirect_uris': [redirect_uri]
|
'redirect_uris': [redirect_uri],
|
||||||
|
'confidential_client': True
|
||||||
})
|
})
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -181,7 +183,7 @@ def main() -> None:
|
|||||||
]
|
]
|
||||||
|
|
||||||
gitea_oauth_apps = [
|
gitea_oauth_apps = [
|
||||||
{'name': 'woodpecker', 'redirect_uri': f"https://{client.NetworkingV1Api().read_namespaced_ingress('woodpecker-server', 'woodpecker').spec.rules[0].host}/authorize"}
|
{'name': 'woodpecker', 'redirect_uri': f"https://{client.NetworkingV1Api().read_namespaced_ingress('woodpecker-server', 'woodpecker').spec.rules[0].host}/authorize"},
|
||||||
]
|
]
|
||||||
|
|
||||||
kanidm_groups = [
|
kanidm_groups = [
|
||||||
|
|||||||
Reference in New Issue
Block a user