From 9360cd012cf3cdd423bee5a533cc69d561619631 Mon Sep 17 00:00:00 2001 From: pida123 Date: Thu, 3 Aug 2023 10:27:18 +0200 Subject: [PATCH] add logic statement to circleci jobs --- .circleci/config.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 29889f30..9a4ed714 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -53,6 +53,10 @@ jobs: workflows: version: 2 build-and-register-stg: + when: + and: + - equal: [ staging, << pipeline.git.branch >> ] + - << pipeline.git.tag >> jobs: - build-push-docker-image: filters: @@ -73,6 +77,10 @@ workflows: ignore: /.*/ build-and-register-ppd: + when: + and: + - equal: [ preprod, << pipeline.git.branch >> ] + - << pipeline.git.tag >> jobs: - build-push-docker-image: filters: @@ -93,6 +101,10 @@ workflows: ignore: /.*/ build-and-register-prd: + when: + and: + - equal: [ main, << pipeline.git.branch >> ] + - << pipeline.git.tag >> jobs: - build-push-docker-image: filters: