chore: update to use scheduled pipeline (1.10) (#23809)

* chore: update to use scheduled pipeline

* chore: add documentation to scheduled pipelines
pull/23825/head
Brandon Pfeifer 2022-10-18 12:22:16 -04:00 committed by GitHub
parent fa677d08c6
commit 63cbda134f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 20 additions and 10 deletions

View File

@ -8,6 +8,10 @@ parameters:
type: string type: string
default: go1.18.6-9c97f2f2903566a00bd4b00184aeca0c813adda0 default: go1.18.6-9c97f2f2903566a00bd4b00184aeca0c813adda0
workflow:
type: string
default: build
commands: commands:
install_rust: install_rust:
steps: steps:
@ -342,6 +346,8 @@ release_filter: &release_filter
workflows: workflows:
version: 2.1 version: 2.1
release: release:
when:
equal: [ << pipeline.parameters.workflow >>, build ]
jobs: jobs:
- build_binaries: - build_binaries:
<<: *release_filter <<: *release_filter
@ -380,6 +386,8 @@ workflows:
<<: *release_filter <<: *release_filter
on_push: on_push:
when:
equal: [ << pipeline.parameters.workflow >>, build ]
jobs: jobs:
- build_binaries - build_binaries
- build_packages: - build_packages:
@ -393,16 +401,18 @@ workflows:
- unit_test - unit_test
- unit_test_tsi - unit_test_tsi
- unit_test_race - unit_test_race
daily: nightly:
triggers: when:
- schedule: and:
# run weekdays at 4am -- note: use spaces, not tabs # This requires a pipeline trigger with a custom "workflow" parameter
cron: "0 4 * * 1-5" # set to "nightly". Since we want to trigger this workflow on several
filters: # branches, we cannot use the trigger name as suggested by the
branches: # documentation.
only: #
- "master-1.x" # For more information:
- "1.9" # https://circleci.com/docs/scheduled-pipelines/
- equal: [ << pipeline.trigger_source >>, scheduled_pipeline ]
- equal: [ << pipeline.parameters.workflow >>, nightly ]
jobs: jobs:
- changelog - changelog
- s3-publish-changelog: - s3-publish-changelog: