mirror of
https://github.com/jupyter/docker-stacks.git
synced 2025-10-07 18:14:05 +00:00
Build all contributed recipes automatically (#1973)
* Build all contributed recipes automatically * Add missing file * Add checkout repo * Fix matrix * Remove unused var * Add typing
This commit is contained in:
17
docs/using/recipe_code/generate_matrix.py
Executable file
17
docs/using/recipe_code/generate_matrix.py
Executable file
@@ -0,0 +1,17 @@
|
||||
#!/usr/bin/env python3
|
||||
# Copyright (c) Jupyter Development Team.
|
||||
# Distributed under the terms of the Modified BSD License.
|
||||
import json
|
||||
from pathlib import Path
|
||||
from typing import Any
|
||||
|
||||
THIS_DIR = Path(__file__).parent.resolve()
|
||||
|
||||
|
||||
def generate_matrix() -> dict[str, Any]:
|
||||
dockerfiles = sorted(file.name for file in THIS_DIR.glob("*.dockerfile"))
|
||||
return {"dockerfile": dockerfiles}
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
print("matrix=" + json.dumps(generate_matrix()))
|
Reference in New Issue
Block a user