Skip to content

Commit

Permalink
Merge pull request #777 from DSD-DBS/fix-image-builder
Browse files Browse the repository at this point in the history
Allow custom base image for image builder
  • Loading branch information
MoritzWeber0 authored Jun 20, 2023
2 parents fb6a861 + 40a27e9 commit 9c7c763
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions ci-templates/gitlab/image-builder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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

0 comments on commit 9c7c763

Please sign in to comment.