✨ Build image for all supported Ubuntu version
This commit is contained in:
parent
60a39f933d
commit
3a300e9933
2 changed files with 7 additions and 2 deletions
|
@ -6,10 +6,15 @@ build:
|
||||||
entrypoint: [""]
|
entrypoint: [""]
|
||||||
|
|
||||||
script:
|
script:
|
||||||
|
- sed -i "s/ubuntu:latest/ubuntu:${UBUNTU_VERSION}/" "${CI_PROJECT_DIR}/Dockerfile"
|
||||||
- /kaniko/executor
|
- /kaniko/executor
|
||||||
--context "${CI_PROJECT_DIR}"
|
--context "${CI_PROJECT_DIR}"
|
||||||
--dockerfile "${CI_PROJECT_DIR}/Dockerfile"
|
--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:
|
rules:
|
||||||
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH || $CI_PIPELINE_SOURCE == "schedule"
|
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH || $CI_PIPELINE_SOURCE == "schedule"
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
FROM ubuntu:lunar
|
FROM ubuntu:latest
|
||||||
|
|
||||||
RUN apt-get -y update && \
|
RUN apt-get -y update && \
|
||||||
DEBIAN_FRONTEND=noninteractive apt-get install -y debhelper devscripts git gnupg libxml2-utils openssh-client && \
|
DEBIAN_FRONTEND=noninteractive apt-get install -y debhelper devscripts git gnupg libxml2-utils openssh-client && \
|
||||||
|
|
Loading…
Reference in a new issue