From d5bda1c2d434ddb3422810c0de7affd372ffcdae Mon Sep 17 00:00:00 2001 From: Wolfgang Hottgenroth Date: Tue, 15 Jul 2025 15:16:54 +0200 Subject: [PATCH] adjust ci rules --- .gitlab-ci.yml | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 8020069..91def74 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -77,7 +77,7 @@ generate-defectdojo-api: - docker - bash rules: - - if: '$CI_COMMIT_TAG' + - if: '$CI_COMMIT_BRANCH == "main" || $CI_COMMIT_BRANCH == "production_deployment"' script: - docker build --build-arg ADDITIONAL_CA_URL="$KROHNE_CA_URL" --build-arg ADDITIONAL_CA_CHECKSUM=$KROHNE_CA_CHECKSUM @@ -133,9 +133,8 @@ dockerize-server: deploy-test: extends: .deploy - only: - refs: - - main + rules: + - if: '$CI_COMMIT_BRANCH == "main"' tags: - test-deployment-de01rdtst01 variables: @@ -145,9 +144,8 @@ deploy-test: deploy-dev: extends: .deploy - only: - refs: - - production_deployment + rules: + - if: '$CI_COMMIT_BRANCH == "production_deployment"' tags: - for-common-services-prod-deployment-only variables: