Commit 29ce339e authored by Jan Kiene's avatar Jan Kiene
Browse files

add template for building docker images

parent ad8d0cba
Loading
Loading
Loading
Loading
Loading
+18 −0
Original line number Diff line number Diff line
@@ -17,6 +17,24 @@ stages:
  - test
  - compare

# template for job that builds docker images and pushes them to the container registry (once enabled)
.build-docker-image:
  stage: maintenance
  tags:
    - shell
  script:
    - echo "test"
  rules:
    - if: $CI_COMMIT_REF_NAME != $CI_DEFAULT_BRANCH
      when: manual
      allow_failure: true
    - if: $CI_PIPELINE_SOURCE == "merge_request_event" || $CI_PIPELINE_SOURCE == "push"
      changes:
        - ci/*dockerfile

ubuntu_22.04:
  extends: .build-docker-image

# temporary test job to see whether everything works with the docker runner
test-job-docker-runner:
  stage: test