From 93c7071ed921e38629f10cee2c99925c8530b850 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Henning?= <soeren.henning@email.uni-kiel.de> Date: Sat, 17 Apr 2021 13:40:03 +0200 Subject: [PATCH] Make native build optional (temporary) --- .gitlab-ci.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 4a412569f..50c959868 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -242,6 +242,7 @@ build-theodolite-native: script: - gu install native-image # TODO move to image - ./gradlew --build-cache assemble -Dquarkus.package.type=native + when: manual artifacts: paths: - "theodolite-quarkus/build/*-runner" @@ -279,12 +280,13 @@ deploy-theodolite: - .theodolite - .dind needs: - - build-theodolite-native + #- build-theodolite-native + - build-theodolite-jvm - test-theodolite script: - DOCKER_TAG_NAME=$(echo $CI_COMMIT_REF_SLUG- | sed 's/^master-$//') - - docker build -f src/main/docker/Dockerfile.native -t theodolite . - #- docker build -f src/main/docker/Dockerfile.jvm -t theodolite . + #- docker build -f src/main/docker/Dockerfile.native -t theodolite . + - docker build -f src/main/docker/Dockerfile.jvm -t theodolite . - "[ ! $CI_COMMIT_TAG ] && docker tag theodolite $CR_HOST/$CR_ORG/theodolite:${DOCKER_TAG_NAME}latest" - "[ ! $CI_COMMIT_TAG ] && docker tag theodolite $CR_HOST/$CR_ORG/theodolite:$DOCKER_TAG_NAME$CI_COMMIT_SHORT_SHA" - "[ $CI_COMMIT_TAG ] && docker tag theodolite $CR_HOST/$CR_ORG/theodolite:$CI_COMMIT_TAG" -- GitLab