From 40a27e9f35442943f0b714640d4000bd5ef9b455 Mon Sep 17 00:00:00 2001 From: MoritzWeber Date: Tue, 20 Jun 2023 12:00:42 +0200 Subject: [PATCH] feat: Allow custom base image for image builder --- ci-templates/gitlab/image-builder.yml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/ci-templates/gitlab/image-builder.yml b/ci-templates/gitlab/image-builder.yml index 6315f0656..d4304a340 100644 --- a/ci-templates/gitlab/image-builder.yml +++ b/ci-templates/gitlab/image-builder.yml @@ -26,6 +26,7 @@ variables: GUACAMOLE_IMAGE_NAME: "capella/collab/guacamole" DOCKER_BUILD_ARGS: "--no-cache" DOCKER_BUILDKIT: "1" + BASE_IMAGE: "debian:bullseye" default: image: $DOCKER_REGISTRY/base @@ -76,7 +77,6 @@ frontend: script: - *prepare - IMAGE=${DOCKER_REGISTRY}/${FRONTEND_IMAGE_NAME:?} - - BASE_IMAGE=${DOCKER_REGISTRY}/base - *docker - mv ../favicon.ico frontend/src - mv ../environment.prod.ts frontend/src/environments @@ -93,7 +93,6 @@ backend: script: - *prepare - IMAGE=${DOCKER_REGISTRY}/${BACKEND_IMAGE_NAME:?} - - BASE_IMAGE=${DOCKER_REGISTRY}/base - *docker - python backend/generate_git_archival.py - docker build ${DOCKER_BUILD_ARGS} -t ${IMAGE}:${DOCKER_TAG} --build-arg BASE_IMAGE=${BASE_IMAGE} backend @@ -107,7 +106,6 @@ docs: script: - *prepare - IMAGE=${DOCKER_REGISTRY}/${DOCS_IMAGE_NAME:?} - - BASE_IMAGE=${DOCKER_REGISTRY}/base - *docker - docker build ${DOCKER_BUILD_ARGS} -t ${IMAGE}:${DOCKER_TAG} --build-arg BASE_IMAGE=${BASE_IMAGE} docs/user - *push @@ -120,7 +118,6 @@ guacamole: script: - *prepare - IMAGE=${DOCKER_REGISTRY}/${GUACAMOLE_IMAGE_NAME:?} - - BASE_IMAGE=guacamole/guacamole - *docker - - docker build ${DOCKER_BUILD_ARGS} -t ${IMAGE}:${DOCKER_TAG} --build-arg BASE_IMAGE=${BASE_IMAGE} guacamole + - docker build ${DOCKER_BUILD_ARGS} -t ${IMAGE}:${DOCKER_TAG} --build-arg BASE_IMAGE=guacamole/guacamole guacamole - *push