✨ 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: [""]
|
||||
|
||||
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"
|
||||
|
|
|
@ -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 && \
|
||||
|
|
Loading…
Reference in a new issue