fix filters cicd

This commit is contained in:
pida123 2023-08-03 16:06:03 +02:00
parent f9c38552fb
commit 3f96640b54

View File

@ -56,14 +56,14 @@ workflows:
when: when:
and: and:
- equal: [ staging, << pipeline.git.branch >> ] - equal: [ staging, << pipeline.git.branch >> ]
- << pipeline.git.tag >> - true
jobs: jobs:
- build-push-docker-image: - build-push-docker-image:
filters: filters:
tags: tags:
only: /^v.*/ only: /^v.*/
branches: branches:
only: staging ignore: /.*/
- deploy-docker-image: - deploy-docker-image:
env: stg env: stg
requires: requires:
@ -80,14 +80,14 @@ workflows:
when: when:
and: and:
- equal: [ preprod, << pipeline.git.branch >> ] - equal: [ preprod, << pipeline.git.branch >> ]
- << pipeline.git.tag >> - true
jobs: jobs:
- build-push-docker-image: - build-push-docker-image:
filters: filters:
tags: tags:
only: /^v.*/ only: /^v.*/
branches: branches:
only: preprod ignore: /.*/
- deploy-docker-image: - deploy-docker-image:
env: ppd env: ppd
requires: requires:
@ -104,7 +104,7 @@ workflows:
when: when:
and: and:
- equal: [ main, << pipeline.git.branch >> ] - equal: [ main, << pipeline.git.branch >> ]
- << pipeline.git.tag >> - true
jobs: jobs:
- build-push-docker-image: - build-push-docker-image:
filters: filters: