Skip to content

Commit

Permalink
bug/2403 scheduled triggers (#2414)
Browse files Browse the repository at this point in the history
* add unless nigtly to non nightly

* also don't run deployment from nightly owasp scan for prod

---------

Co-authored-by: George Hudson <[email protected]>
  • Loading branch information
n0remac and George Hudson authored Feb 22, 2023
1 parent 412b499 commit ff33e1e
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 2 deletions.
1 change: 1 addition & 0 deletions .circleci/build-and-test/workflows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
- << pipeline.parameters.run_dev_deployment >>
- << pipeline.parameters.develop_branch_deploy >>
- << pipeline.parameters.run_owasp_scan >>
- << pipeline.parameters.run_nightly_owasp_scan >>
jobs:
- secrets-check
- test-frontend:
Expand Down
10 changes: 8 additions & 2 deletions .circleci/deployment/workflows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@
- deploy-infrastructure-dev

staging-deployment:
unless: << pipeline.parameters.run_dev_deployment >>
unless:
or:
- << pipeline.parameters.run_dev_deployment >>
- << pipeline.parameters.run_nightly_owasp_scan >>
jobs:
- deploy-project-updates-site:
filters:
Expand Down Expand Up @@ -51,7 +54,10 @@
- develop

production-deployment:
unless: << pipeline.parameters.run_dev_deployment >>
unless:
or:
- << pipeline.parameters.run_dev_deployment >>
- << pipeline.parameters.run_nightly_owasp_scan >>
jobs:
- deploy-infrastructure-production:
filters:
Expand Down
1 change: 1 addition & 0 deletions .circleci/infrastructure/workflows.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#workflows:

enable-versioning-for-s3-buckets:
unless: << pipeline.parameters.run_nightly_owasp_scan >>
jobs:
- enable-versioning:
filters:
Expand Down
1 change: 1 addition & 0 deletions .circleci/util/workflows.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# workflows:
erd:
unless: << pipeline.parameters.run_nightly_owasp_scan >>
jobs:
- make_erd:
filters:
Expand Down

0 comments on commit ff33e1e

Please sign in to comment.