2023-07-27 17:36:09 +02:00
|
|
|
build:
|
|
|
|
stage: build
|
|
|
|
|
|
|
|
image:
|
2024-05-29 18:57:04 +02:00
|
|
|
name: gcr.io/kaniko-project/executor:v1.23.0-debug
|
2023-07-27 17:36:09 +02:00
|
|
|
entrypoint: [""]
|
|
|
|
|
|
|
|
script:
|
2023-07-27 17:54:19 +02:00
|
|
|
- sed -i "s/ubuntu:latest/ubuntu:${UBUNTU_VERSION}/" "${CI_PROJECT_DIR}/Dockerfile"
|
2023-07-27 17:36:09 +02:00
|
|
|
- /kaniko/executor
|
|
|
|
--context "${CI_PROJECT_DIR}"
|
|
|
|
--dockerfile "${CI_PROJECT_DIR}/Dockerfile"
|
2023-07-27 17:54:19 +02:00
|
|
|
--destination "${CI_REGISTRY_IMAGE}:${UBUNTU_VERSION}"
|
|
|
|
|
|
|
|
parallel:
|
|
|
|
matrix:
|
2024-05-29 18:54:57 +02:00
|
|
|
- UBUNTU_VERSION: [trusty, xenial, bionic, focal, jammy, mantic, noble]
|
2023-07-27 17:36:09 +02:00
|
|
|
|
|
|
|
rules:
|
|
|
|
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH || $CI_PIPELINE_SOURCE == "schedule"
|