Skip to content

Commit

Permalink
Merge pull request #194 from Financial-Times/nori/scheduled-pipeline
Browse files Browse the repository at this point in the history
CPP-890 update config for nightly scheduled-pipelines
  • Loading branch information
serena97 authored Jun 15, 2022
2 parents 39b468c + bea950f commit 576f848
Showing 1 changed file with 19 additions and 6 deletions.
25 changes: 19 additions & 6 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ jobs:
.circleci/shared-helpers
- *restore_npm_cache
- node/install-npm:
version: "7"
version: "7.20.2"
- run:
name: Install project dependencies
command: make install
Expand Down Expand Up @@ -131,6 +131,11 @@ workflows:
version: 2

build-test:
when:
not:
equal:
- scheduled_pipeline
- << pipeline.trigger_source >>
jobs:
- build:
filters:
Expand All @@ -148,6 +153,11 @@ workflows:
node-version: [ "16.14", "14.19" ]

build-test-publish:
when:
not:
equal:
- scheduled_pipeline
- << pipeline.trigger_source >>
jobs:
- build:
filters:
Expand All @@ -173,11 +183,14 @@ workflows:
- test-v16.14

nightly:
triggers:
- schedule:
cron: "0 0 * * *"
filters:
<<: *filters_only_main
when:
and:
- equal:
- scheduled_pipeline
- << pipeline.trigger_source >>
- equal:
- nightly
- << pipeline.schedule.name >>
jobs:
- build:
context: next-nightly-build
Expand Down

0 comments on commit 576f848

Please sign in to comment.