Skip to content
Snippets Groups Projects
Commit 68e5ec1f authored by Jean-Paul Calderone's avatar Jean-Paul Calderone
Browse files

Run the production update on a schedule, too.

parent f644875b
Branches
No related tags found
2 merge requests!328update production,!318Automatically create production update MRs
......@@ -14,9 +14,16 @@
# As above, but rules for running when the scheduler triggers the pipeline.
.schedule_rules: &RUN_ON_SCHEDULE
rules:
- if: '$CI_PIPELINE_SOURCE == "schedule"'
# There are multiple schedules so make sure this one is for us.
- if: '$SCHEDULE_TARGET != $CI_JOB_NAME'
when: "never"
- when: "never"
# Make sure this is actually a scheduled run
- if: '$CI_PIPELINE_SOURCE != "schedule"'
when: "never"
# Conditions look good: run.
- when: "always"
stages:
- "build"
......@@ -169,7 +176,8 @@ update-nixpkgs:
"$CI_DEFAULT_BRANCH"
update-production:
<<: *RUN_ON_MERGE_REQUEST
<<: *RUN_ON_SCHEDULE
stage: "build"
script:
- |
./ci-tools/update-production \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment