Skip to content
Snippets Groups Projects
Commit 449607cd authored by Sören Henning's avatar Sören Henning
Browse files

Lift up Theodolite execution pipeline

parent bfc3b8c6
No related branches found
No related tags found
2 merge requests!89Single CI/CD pipeline definitions,!84Gitlab CI for Theodolite-Kotlin-Quarkus
Pipeline #2054 passed with warnings
stages: stages:
- triggers # TODO remove
- build - build
- test - test
- check - check
- deploy - deploy
# Theodolite Benchmarks
.benchmarks: .benchmarks:
image: openjdk:11-jdk image: openjdk:11-jdk
tags: tags:
...@@ -237,39 +239,34 @@ deploy-uc4-load-generator: ...@@ -237,39 +239,34 @@ deploy-uc4-load-generator:
allow_failure: true allow_failure: true
# Theodolite Framework
deploy-theodolite:
stage: deploy
tags:
- exec-dind
image: docker:19.03.1
services:
- docker:19.03.1-dind
############## variables:
DOCKER_TLS_CERTDIR: "/certs"
script:
- DOCKER_TAG_NAME=$(echo $CI_COMMIT_REF_SLUG- | sed 's/^master-$//')
- docker build --pull -t theodolite ./execution
benchmarks-trigger: - "[ ! $CI_COMMIT_TAG ] && docker tag theodolite ghcr.io/$CR_ORG/theodolite:${DOCKER_TAG_NAME}latest"
stage: triggers - "[ ! $CI_COMMIT_TAG ] && docker tag theodolite ghcr.io/$CR_ORG/theodolite:$DOCKER_TAG_NAME$CI_COMMIT_SHORT_SHA"
trigger: - "[ $CI_COMMIT_TAG ] && docker tag theodolite ghcr.io/$CR_ORG/theodolite:$CI_COMMIT_TAG"
include: benchmarks/.gitlab-ci.yml - echo $CR_PW | docker login ghcr.io -u $CR_USER --password-stdin
strategy: depend - docker push $CR_HOST/$CR_ORG/theodolite
- docker logout
rules: rules:
- if: "$CI_COMMIT_TAG" - if: "$CR_HOST && $CR_ORG && $CR_USER && $CR_PW && $CI_COMMIT_TAG"
when: always
- changes: - changes:
- benchmarks/* - execution/**/*
- when: manual if: "$CR_HOST && $CR_ORG && $CR_USER && $CR_PW"
when: always
- if: "$CR_HOST && $CR_ORG && $CR_USER && $CR_PW"
when: manual
allow_failure: true allow_failure: true
execution:
stage: triggers
trigger:
include: execution/.gitlab-ci.yml
strategy: depend
rules:
- if: "$CI_COMMIT_TAG"
- changes:
- execution/*
- when: manual
allow_failure: true
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment