From 5546aaa7b9d711b74b3d7448a75e4efd9cf4c7d0 Mon Sep 17 00:00:00 2001 From: Thomas NOEL Date: Thu, 30 Mar 2023 18:25:12 +0200 Subject: [PATCH] download from dl.gitea.com instead of github.com (#76046) --- README.md | 4 ++-- download.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 8abd24c..e9cf222 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Paquet debian semi-automatique pour serveur Gitea -Ce dépôt contient un fichier `Jenkinsfile` qui peut être utilisé pour construire un paquet Gitea basique contenant le binaire téléchargé depuis https://github.com/go-gitea/gitea/releases. +Ce dépôt contient un fichier `Jenkinsfile` qui peut être utilisé pour construire un paquet Gitea basique contenant le binaire téléchargé depuis https://dl.gitea.com/gitea/ ## Utilisation @@ -12,4 +12,4 @@ Pour déployer ce paquet : ssh git.entrouvert.org sudo apt update sudo apt install --only-upgrade gitea -``` \ No newline at end of file +``` diff --git a/download.py b/download.py index 64bdac8..e7c04e2 100644 --- a/download.py +++ b/download.py @@ -18,7 +18,7 @@ elif os.path.exists('VERSION'): version = '.'.join(version.split('.')[:3]) -url = f'https://github.com/go-gitea/gitea/releases/download/v{version}/gitea-{version}-linux-amd64.xz' +url = f'https://dl.gitea.com/gitea/{version}/gitea-{version}-linux-amd64.xz' print('downloading', url) r = requests.get(url) if not r.ok: