From 3a300e9933dd8c888c187f2205c955e2740eb93d Mon Sep 17 00:00:00 2001 From: Marcel Kapfer Date: Thu, 27 Jul 2023 17:54:19 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20Build=20image=20for=20all=20support?= =?UTF-8?q?ed=20Ubuntu=20version?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitlab-ci.yml | 7 ++++++- Dockerfile | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) 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 && \