add logic statement to circleci jobs
This commit is contained in:
parent
a6c5219620
commit
9360cd012c
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user