add logic statement to circleci jobs

This commit is contained in:
pida123 2023-08-03 10:27:18 +02:00
parent a6c5219620
commit 9360cd012c

View File

@ -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: