mirror of
https://github.com/jupyter/docker-stacks.git
synced 2025-10-08 10:34:06 +00:00
Build contributed recipes in mathbunnyru fork as well
This commit is contained in:
4
.github/workflows/contributed-recipes.yml
vendored
4
.github/workflows/contributed-recipes.yml
vendored
@@ -31,11 +31,13 @@ jobs:
|
|||||||
- name: Calculate recipes matrix 🛠
|
- name: Calculate recipes matrix 🛠
|
||||||
id: set-matrix
|
id: set-matrix
|
||||||
run: docs/using/recipe_code/generate_matrix.py >> "${GITHUB_OUTPUT}"
|
run: docs/using/recipe_code/generate_matrix.py >> "${GITHUB_OUTPUT}"
|
||||||
|
env:
|
||||||
|
REPOSITORY_OWNER: ${{ github.repository_owner }}
|
||||||
|
|
||||||
test-recipes:
|
test-recipes:
|
||||||
runs-on: ${{ matrix.runs-on }}
|
runs-on: ${{ matrix.runs-on }}
|
||||||
needs: generate-matrix
|
needs: generate-matrix
|
||||||
if: github.repository_owner == 'jupyter'
|
if: github.repository_owner == 'jupyter' || github.repository_owner == 'mathbunnyru'
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Repo ⚡️
|
- name: Checkout Repo ⚡️
|
||||||
|
@@ -2,17 +2,22 @@
|
|||||||
# Copyright (c) Jupyter Development Team.
|
# Copyright (c) Jupyter Development Team.
|
||||||
# Distributed under the terms of the Modified BSD License.
|
# Distributed under the terms of the Modified BSD License.
|
||||||
import json
|
import json
|
||||||
|
import os
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from typing import Any
|
from typing import Any
|
||||||
|
|
||||||
THIS_DIR = Path(__file__).parent.resolve()
|
THIS_DIR = Path(__file__).parent.resolve()
|
||||||
|
REPOSITORY_OWNER = os.environ["REPOSITORY_OWNER"]
|
||||||
|
|
||||||
|
|
||||||
def generate_matrix() -> dict[str, Any]:
|
def generate_matrix() -> dict[str, Any]:
|
||||||
dockerfiles = sorted(file.name for file in THIS_DIR.glob("*.dockerfile"))
|
dockerfiles = sorted(file.name for file in THIS_DIR.glob("*.dockerfile"))
|
||||||
|
runs_on = ["ubuntu-latest"]
|
||||||
|
if REPOSITORY_OWNER == "jupyter":
|
||||||
|
runs_on.append("ARM64")
|
||||||
return {
|
return {
|
||||||
"dockerfile": dockerfiles,
|
"dockerfile": dockerfiles,
|
||||||
"runs-on": ["ubuntu-latest", "ARM64"],
|
"runs-on": runs_on,
|
||||||
"exclude": [{"dockerfile": "oracledb.dockerfile", "runs-on": "ARM64"}],
|
"exclude": [{"dockerfile": "oracledb.dockerfile", "runs-on": "ARM64"}],
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user