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

feat: build minor version of cubicweb

parent 177f51418906
FROM debian:buster-slim
RUN apt-get update && \
apt-get -y --no-install-recommends install \
wget \
gnupg \
ca-certificates \
&& rm -rf /var/lib/apt/lists/*
RUN echo "deb http://apt.logilab.fr buster main" > /etc/apt/sources.list.d/logilab.list
RUN wget -O - https://apt.logilab.fr/key.asc | apt-key --keyring /etc/apt/trusted.gpg.d/logilab.gpg add -
CMD apt-get update > /dev/null && \
apt-cache show python3-cubicweb | grep '^Version' | cut -f2 -d' '
......@@ -4,6 +4,15 @@ import itertools
import subprocess
import sys
import logging
from dataclasses import dataclass
@dataclass
class CubicWebImage:
python: str
debian: str
package_name: str
cubicweb_version: str
tag: str
LOG = logging.getLogger(__name__)
......@@ -118,6 +127,21 @@ def build_buildpackage(dist):
'--build-arg', 'DIST={}'.format(dist),
'-f', 'Dockerfile.buildpackage', '.')
def get_cubicweb_version_matrix():
check_call('docker', 'build', '.', '-f', 'Dockerfile.getversion', '-t','cubicweb:getversion')
versions = check_output('docker', 'run', '--rm', 'cubicweb:getversion').splitlines()
# filter release candidate version
valid_versions = [version for version in versions if '~rc' not in version]
MATRIX = [
# (['py27'], ['stretch', 'buster'], [None, '3.25', '3.26'],
# [None, 'onbuild']),
# (['py35'], ['stretch'], [None, '3.26', '3.27'], [None, 'onbuild']),
(['py37'], ['buster'], ['3.29'], [None, 'onbuild']),
]
return valid_versions
def build(rebuild=False):
if rebuild:
......
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