diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 30d20ba..54d0f7c 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -6,10 +6,15 @@ build: entrypoint: [""] script: + - sed -i "s/ubuntu:latest/ubuntu:${UBUNTU_VERSION}/" "${CI_PROJECT_DIR}/Dockerfile" - /kaniko/executor --context "${CI_PROJECT_DIR}" --dockerfile "${CI_PROJECT_DIR}/Dockerfile" - --destination "${CI_REGISTRY_IMAGE}:lunar" + --destination "${CI_REGISTRY_IMAGE}:${UBUNTU_VERSION}" + + parallel: + matrix: + - UBUNTU_VERSION: [trusty, xenial, bionic, focal, jammy, lunar] rules: - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH || $CI_PIPELINE_SOURCE == "schedule" diff --git a/Dockerfile b/Dockerfile index 639a797..5f53025 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM ubuntu:lunar +FROM ubuntu:latest RUN apt-get -y update && \ DEBIAN_FRONTEND=noninteractive apt-get install -y debhelper devscripts git gnupg libxml2-utils openssh-client && \