bundles/gitea: use github releases instead of dl.gitea.io (which is slow)

This commit is contained in:
Franzi 2022-02-06 15:24:46 +01:00
parent 198b2c31fb
commit 6d1a24b034
Signed by: kunsi
GPG key ID: 12E3D2136B818350

View file

@ -40,7 +40,10 @@ files = {
}, },
'/usr/local/bin/gitea': { '/usr/local/bin/gitea': {
'content_type': 'download', 'content_type': 'download',
'source': 'https://dl.gitea.io/gitea/{version}/gitea-{version}-linux-amd64'.format(version=node.metadata['gitea']['version']), #'source': 'https://dl.gitea.io/gitea/{version}/gitea-{version}-linux-amd64'.format(version=node.metadata.get('gitea/version')),
'source': 'https://github.com/go-gitea/gitea/releases/download/v{version}/gitea-{version}-linux-amd64'.format(
version=node.metadata.get('gitea/version'),
),
'content_hash': node.metadata.get('gitea/sha1', None), 'content_hash': node.metadata.get('gitea/sha1', None),
'mode': '0755', 'mode': '0755',
'preceded_by': { 'preceded_by': {