Skip to content
This repository has been archived by the owner on Mar 22, 2024. It is now read-only.

Commit

Permalink
Merge pull request #655 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 176be88 + e6344a7 commit 85f53ba
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 7 deletions.
30 changes: 24 additions & 6 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,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 @@ -138,6 +138,11 @@ workflows:
version: 2

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

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

renovate-nori-build-test:
when:
not:
equal:
- scheduled_pipeline
- << pipeline.trigger_source >>
jobs:
- waiting-for-approval:
type: approval
Expand All @@ -201,11 +216,14 @@ workflows:
node-version: [ "16.14", "14.19" ]

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
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 85f53ba

Please sign in to comment.