From e1d132359bb76f1a94003714c024f55672562e92 Mon Sep 17 00:00:00 2001 From: Martin Weise <martin.weise@tuwien.ac.at> Date: Mon, 3 Mar 2025 20:15:39 +0100 Subject: [PATCH] WIP Signed-off-by: Martin Weise <martin.weise@tuwien.ac.at> --- .gitlab-ci.yml | 26 +++++++++----------------- 1 file changed, 9 insertions(+), 17 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 879abd77ad..741fda2693 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -449,9 +449,8 @@ release-images: stage: release image: docker:${DOCKER_VERSION}-dind only: - refs: - - dev - - /^release-.*/ + - dev + - tags dependencies: - test-analyse-service - test-auth-service-init @@ -475,8 +474,7 @@ release-helm: stage: release image: docker:${DOCKER_VERSION}-dind only: - refs: - - /^release-.*/ + - tags when: manual needs: - build-helm @@ -504,8 +502,7 @@ release-docs: stage: release image: docker.io/python:${PYTHON_VERSION}-alpine${ALPINE_VERSION} only: - refs: - - /^release-.*/ + - tags before_script: - "apk add --no-cache alpine-sdk bash sed wget openssh jq curl" - "pip install pipenv" @@ -539,8 +536,7 @@ release-libs: image: docker.io/python:${PYTHON_VERSION}-alpine${ALPINE_VERSION} when: manual only: - refs: - - /^release-.*/ + - tags variables: PIPENV_PIPFILE: "./dbrepo-analyse-service/Pipfile" before_script: @@ -555,8 +551,7 @@ verify-install-script: image: docker.io/docker:${DOCKER_VERSION}-dind stage: verify only: - refs: - - /^release-.*/ + - tags variables: SKIP_CHECKS: 1 before_script: @@ -568,8 +563,7 @@ verify-dist: image: docker.io/alpine:${ALPINE_VERSION} stage: verify only: - refs: - - /^release-.*/ + - tags before_script: - "apk add curl" script: @@ -579,8 +573,7 @@ deploy-staging: image: docker.io/alpine:${ALPINE_VERSION} stage: deploy only: - refs: - - dev + - dev variables: KUBECONFIG: ./kubecfg environment: @@ -600,8 +593,7 @@ scan-sonarqube: image: sonarsource/sonar-scanner-cli:${SONARQUBE_VERSION} stage: scan only: - refs: - - master + - $CI_DEFAULT_BRANCH script: - 'sonar-scanner -Dsonar.token="${CI_SONAR_TOKEN}"' allow_failure: true -- GitLab