Commit b1e470bf authored by Noé Gaumont's avatar Noé Gaumont 🐙
Browse files

Download dev from default branch in forge.extranet.logilab.fr instead of hg.logilab.org

Heptapod does not support downloading archives of repo from an hg id (it exposes git id).
In order to invalidate docker cache, an url anchor with the hg id is used.
parent f3b733c665ac
......@@ -8,7 +8,7 @@ import logging
LOG = logging.getLogger(__name__)
REGISTRY = 'logilab/cubicweb'
CWREPO = 'https://hg.logilab.org/master/cubicweb'
CWREPO = 'https://forge.extranet.logilab.fr/cubicweb/cubicweb/'
MATRIX = [
(['py27'], ['stretch', 'buster'], [None, '3.25', '3.26'],
[None, 'onbuild']),
......@@ -43,7 +43,8 @@ def check_output(*args):
def _cwdev(_cache={}):
if not _cache:
rev = check_output('hg', 'id', '-r', 'default', CWREPO)
_cache[None] = '{}/archive/{}.tar.gz'.format(
# url anchor is used to invalidate docker cache.
_cache[None] = '{0}-/archive/branch/default/cubicweb-branch-default.tar.gz#rev={1}'.format(
CWREPO, rev)
return _cache[None]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment