Files
docker-stacks/docs/using/recipe_code/generate_matrix.py
Ayaz Salikhov aac56a610b Build contributed recipes on aarch64 (#1974)
* Build contributed recipes on aarch64

* Add --pull to contributed recipes

* Exclude recipe not working on aarch64
2023-08-19 10:42:28 +02:00

22 lines
610 B
Python
Executable File

#!/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,
"runsOn": ["ubuntu-latest", "ARM64"],
"exclude": [{"dockerfile": "oracledb.dockerfile", "runsOn": "ARM64"}],
}
if __name__ == "__main__":
print("matrix=" + json.dumps(generate_matrix()))