Skip to content

Commit

Permalink
Merge pull request #186 from jupyter-naas/run-schedulers-on-self-hosted
Browse files Browse the repository at this point in the history
ci: Make it possible to override runs-on
  • Loading branch information
Dr0p42 authored Aug 8, 2024
2 parents 29c1193 + d5e5d9f commit f7d3122
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/scripts/generate_schedulers.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ def generate_schedulers(config : dict, template : str):
cicd = yaml.safe_load(template_str)
del cicd[True]

# Override runs-on
if "runs-on" in scheduler:
cicd["jobs"]["scheduler"]["runs-on"] = scheduler["runs-on"]

# Add docker pull
abi_version = scheduler.get("abi_version", "latest")

Expand Down

0 comments on commit f7d3122

Please sign in to comment.