From 66c1958775c0b0114932f0d4fe14b0baac8c4544 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Schnabel?= Date: Tue, 17 Oct 2023 17:53:54 +0200 Subject: [PATCH] Simplify image building jobs by inheriting stuff from CiScripts template --- .gitlab-ci.yml | 42 ++++++------------------------------------ 1 file changed, 6 insertions(+), 36 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 7f7a8e4..8048c5e 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -18,6 +18,9 @@ include: - project: 'devel/ciscripts' ref: rework-yaml file: .shared-vars.yml + - project: 'devel/ciscripts' + ref: rework-yaml + file: .image-build.yml variables: extends: .shared-variables @@ -26,52 +29,19 @@ variables: #======================================================================================================================= build-leg-image: - stage: image-build - when: manual - tags: [linux] - image: - name: docker:20.10 - services: - - docker:20.10-dind - variables: - DOCKER_TLS_CERTDIR: "/certs" - before_script: - - mkdir -p $HOME/.docker - - echo $DOCKER_AUTH_CONFIG > $HOME/.docker/config.json + extends: .build-leg-image script: - docker build -t registry.gams.com/devel/gdx/leg/builder-gdx:latest ci/images/leg - docker push registry.gams.com/devel/gdx/leg/builder-gdx:latest build-leg-analyze-image: - stage: image-build - when: manual - tags: [linux] - image: - name: docker:20.10 - services: - - docker:20.10-dind - variables: - DOCKER_TLS_CERTDIR: "/certs" - before_script: - - mkdir -p $HOME/.docker - - echo $DOCKER_AUTH_CONFIG > $HOME/.docker/config.json + extends: .build-leg-image script: - docker build -t registry.gams.com/devel/gdx/leg/builder-analyze:latest ci/images/leg-analyze - docker push registry.gams.com/devel/gdx/leg/builder-analyze:latest build-leg-deploy-image: - stage: image-build - when: manual - tags: [linux] - image: - name: docker:20.10 - services: - - docker:20.10-dind - variables: - DOCKER_TLS_CERTDIR: "/certs" - before_script: - - mkdir -p $HOME/.docker - - echo $DOCKER_AUTH_CONFIG > $HOME/.docker/config.json + extends: .build-leg-image script: - docker build -t registry.gams.com/devel/gdx/leg/builder-deploy:latest ci/images/leg-deploy - docker push registry.gams.com/devel/gdx/leg/builder-deploy:latest