Build image for all supported Ubuntu version

This commit is contained in:
Marcel Kapfer 2023-07-27 17:54:19 +02:00
parent 60a39f933d
commit 3a300e9933
Signed by: mmk2410
GPG key ID: CADE6F0C09F21B09
2 changed files with 7 additions and 2 deletions

View file

@ -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"

View file

@ -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 && \