Skip to content

Commit

Permalink
ci: test docker builds
Browse files Browse the repository at this point in the history
  • Loading branch information
demartis committed Nov 16, 2023
1 parent 41828fc commit 3c0b8d8
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 7 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ jobs:
uses: ./.github/workflows/sub_release.yaml
secrets: inherit
with:
MATLAB_NAME: R2019a
DOCKERHUB_REPO: demartis/matlab-runtime
DOCKERHUB_TAG: R2019a
DOCKER_CONTEXT: R2019a
Expand All @@ -38,6 +39,7 @@ jobs:
uses: ./.github/workflows/sub_release.yaml
secrets: inherit
with:
MATLAB_NAME: R2019a
DOCKERHUB_REPO: demartis/matlab-runtime
DOCKERHUB_TAG: R2019a-meshlab
DOCKER_CONTEXT: R2019a-meshlab
Expand All @@ -46,6 +48,7 @@ jobs:
uses: ./.github/workflows/sub_release.yaml
secrets: inherit
with:
MATLAB_NAME: R2019b
DOCKERHUB_REPO: demartis/matlab-runtime
DOCKERHUB_TAG: R2019b
DOCKER_CONTEXT: R2019b
Expand All @@ -55,6 +58,7 @@ jobs:
uses: ./.github/workflows/sub_release.yaml
secrets: inherit
with:
MATLAB_NAME: R2019b
DOCKERHUB_REPO: demartis/matlab-runtime
DOCKERHUB_TAG: R2019b-meshlab
DOCKER_CONTEXT: R2019b-meshlab
Expand All @@ -63,6 +67,7 @@ jobs:
uses: ./.github/workflows/sub_release.yaml
secrets: inherit
with:
MATLAB_NAME: R2020a
DOCKERHUB_REPO: demartis/matlab-runtime
DOCKERHUB_TAG: R2020a
DOCKER_CONTEXT: R2020a
Expand All @@ -72,6 +77,7 @@ jobs:
uses: ./.github/workflows/sub_release.yaml
secrets: inherit
with:
MATLAB_NAME: R2020a
DOCKERHUB_REPO: demartis/matlab-runtime
DOCKERHUB_TAG: R2020a-meshlab
DOCKER_CONTEXT: R2020a-meshlab
Expand All @@ -80,6 +86,7 @@ jobs:
uses: ./.github/workflows/sub_release.yaml
secrets: inherit
with:
MATLAB_NAME: R2020b
DOCKERHUB_REPO: demartis/matlab-runtime
DOCKERHUB_TAG: R2020b
DOCKER_CONTEXT: R2020b
Expand All @@ -89,6 +96,7 @@ jobs:
uses: ./.github/workflows/sub_release.yaml
secrets: inherit
with:
MATLAB_NAME: R2020b
DOCKERHUB_REPO: demartis/matlab-runtime
DOCKERHUB_TAG: R2020b-meshlab
DOCKER_CONTEXT: R2020b-meshlab
Expand All @@ -97,6 +105,7 @@ jobs:
uses: ./.github/workflows/sub_release.yaml
secrets: inherit
with:
MATLAB_NAME: R2021a
DOCKERHUB_REPO: demartis/matlab-runtime
DOCKERHUB_TAG: R2021a
DOCKER_CONTEXT: R2021a
Expand All @@ -106,6 +115,7 @@ jobs:
uses: ./.github/workflows/sub_release.yaml
secrets: inherit
with:
MATLAB_NAME: R2021a
DOCKERHUB_REPO: demartis/matlab-runtime
DOCKERHUB_TAG: R2021a-meshlab
DOCKER_CONTEXT: R2021a-meshlab
Expand All @@ -114,6 +124,7 @@ jobs:
uses: ./.github/workflows/sub_release.yaml
secrets: inherit
with:
MATLAB_NAME: R2021b
DOCKERHUB_REPO: demartis/matlab-runtime
DOCKERHUB_TAG: R2021b
DOCKER_CONTEXT: R2021b
Expand All @@ -123,6 +134,7 @@ jobs:
uses: ./.github/workflows/sub_release.yaml
secrets: inherit
with:
MATLAB_NAME: R2021b
DOCKERHUB_REPO: demartis/matlab-runtime
DOCKERHUB_TAG: R2021b-meshlab
DOCKER_CONTEXT: R2021b-meshlab
Expand All @@ -131,6 +143,7 @@ jobs:
uses: ./.github/workflows/sub_release.yaml
secrets: inherit
with:
MATLAB_NAME: R2022a
DOCKERHUB_REPO: demartis/matlab-runtime
DOCKERHUB_TAG: R2022a
DOCKER_CONTEXT: R2022a
Expand All @@ -140,6 +153,7 @@ jobs:
uses: ./.github/workflows/sub_release.yaml
secrets: inherit
with:
MATLAB_NAME: R2022a
DOCKERHUB_REPO: demartis/matlab-runtime
DOCKERHUB_TAG: R2022a-meshlab
DOCKER_CONTEXT: R2022a-meshlab
Expand All @@ -148,6 +162,7 @@ jobs:
uses: ./.github/workflows/sub_release.yaml
secrets: inherit
with:
MATLAB_NAME: R2022b
DOCKERHUB_REPO: demartis/matlab-runtime
DOCKERHUB_TAG: R2022b
DOCKER_CONTEXT: R2022b
Expand All @@ -157,6 +172,7 @@ jobs:
uses: ./.github/workflows/sub_release.yaml
secrets: inherit
with:
MATLAB_NAME: R2022b
DOCKERHUB_REPO: demartis/matlab-runtime
DOCKERHUB_TAG: R2022b-meshlab
DOCKER_CONTEXT: R2022b-meshlab
Expand All @@ -165,6 +181,7 @@ jobs:
uses: ./.github/workflows/sub_release.yaml
secrets: inherit
with:
MATLAB_NAME: R2023a
DOCKERHUB_REPO: demartis/matlab-runtime
DOCKERHUB_TAG: R2023a
DOCKER_CONTEXT: R2023a
Expand All @@ -174,6 +191,7 @@ jobs:
uses: ./.github/workflows/sub_release.yaml
secrets: inherit
with:
MATLAB_NAME: R2023a
DOCKERHUB_REPO: demartis/matlab-runtime
DOCKERHUB_TAG: R2023a-meshlab
DOCKER_CONTEXT: R2023a-meshlab
Expand All @@ -182,6 +200,7 @@ jobs:
uses: ./.github/workflows/sub_release.yaml
secrets: inherit
with:
MATLAB_NAME: R2023b
DOCKERHUB_REPO: demartis/matlab-runtime
DOCKERHUB_TAG: R2023b
DOCKER_CONTEXT: R2023b
Expand All @@ -192,6 +211,7 @@ jobs:
uses: ./.github/workflows/sub_release.yaml
secrets: inherit
with:
MATLAB_NAME: R2023b
DOCKERHUB_REPO: demartis/matlab-runtime
DOCKERHUB_TAG: R2023b-meshlab
DOCKER_CONTEXT: R2023b-meshlab
Expand Down
20 changes: 20 additions & 0 deletions .github/workflows/ci_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ jobs:
uses: ./.github/workflows/sub_test.yaml
secrets: inherit
with:
MATLAB_NAME: R2019a
DOCKERHUB_REPO: demartis/matlab-runtime
DOCKERHUB_TAG: R2019a
DOCKER_CONTEXT: R2019a
Expand All @@ -34,6 +35,7 @@ jobs:
uses: ./.github/workflows/sub_test.yaml
secrets: inherit
with:
MATLAB_NAME: R2019a
DOCKERHUB_REPO: demartis/matlab-runtime
DOCKERHUB_TAG: R2019a-meshlab
DOCKER_CONTEXT: R2019a-meshlab
Expand All @@ -42,6 +44,7 @@ jobs:
uses: ./.github/workflows/sub_test.yaml
secrets: inherit
with:
MATLAB_NAME: R2019b
DOCKERHUB_REPO: demartis/matlab-runtime
DOCKERHUB_TAG: R2019b
DOCKER_CONTEXT: R2019b
Expand All @@ -51,6 +54,7 @@ jobs:
uses: ./.github/workflows/sub_test.yaml
secrets: inherit
with:
MATLAB_NAME: R2019b
DOCKERHUB_REPO: demartis/matlab-runtime
DOCKERHUB_TAG: R2019b-meshlab
DOCKER_CONTEXT: R2019b-meshlab
Expand All @@ -59,6 +63,7 @@ jobs:
uses: ./.github/workflows/sub_test.yaml
secrets: inherit
with:
MATLAB_NAME: R2020a
DOCKERHUB_REPO: demartis/matlab-runtime
DOCKERHUB_TAG: R2020a
DOCKER_CONTEXT: R2020a
Expand All @@ -68,6 +73,7 @@ jobs:
uses: ./.github/workflows/sub_test.yaml
secrets: inherit
with:
MATLAB_NAME: R2020a
DOCKERHUB_REPO: demartis/matlab-runtime
DOCKERHUB_TAG: R2020a-meshlab
DOCKER_CONTEXT: R2020a-meshlab
Expand All @@ -76,6 +82,7 @@ jobs:
uses: ./.github/workflows/sub_test.yaml
secrets: inherit
with:
MATLAB_NAME: R2020b
DOCKERHUB_REPO: demartis/matlab-runtime
DOCKERHUB_TAG: R2020b
DOCKER_CONTEXT: R2020b
Expand All @@ -85,6 +92,7 @@ jobs:
uses: ./.github/workflows/sub_test.yaml
secrets: inherit
with:
MATLAB_NAME: R2020b
DOCKERHUB_REPO: demartis/matlab-runtime
DOCKERHUB_TAG: R2020b-meshlab
DOCKER_CONTEXT: R2020b-meshlab
Expand All @@ -93,6 +101,7 @@ jobs:
uses: ./.github/workflows/sub_test.yaml
secrets: inherit
with:
MATLAB_NAME: R2021a
DOCKERHUB_REPO: demartis/matlab-runtime
DOCKERHUB_TAG: R2021a
DOCKER_CONTEXT: R2021a
Expand All @@ -102,6 +111,7 @@ jobs:
uses: ./.github/workflows/sub_test.yaml
secrets: inherit
with:
MATLAB_NAME: R2021a
DOCKERHUB_REPO: demartis/matlab-runtime
DOCKERHUB_TAG: R2021a-meshlab
DOCKER_CONTEXT: R2021a-meshlab
Expand All @@ -110,6 +120,7 @@ jobs:
uses: ./.github/workflows/sub_test.yaml
secrets: inherit
with:
MATLAB_NAME: R2021b
DOCKERHUB_REPO: demartis/matlab-runtime
DOCKERHUB_TAG: R2021b
DOCKER_CONTEXT: R2021b
Expand All @@ -119,6 +130,7 @@ jobs:
uses: ./.github/workflows/sub_test.yaml
secrets: inherit
with:
MATLAB_NAME: R2021b
DOCKERHUB_REPO: demartis/matlab-runtime
DOCKERHUB_TAG: R2021b-meshlab
DOCKER_CONTEXT: R2021b-meshlab
Expand All @@ -127,6 +139,7 @@ jobs:
uses: ./.github/workflows/sub_test.yaml
secrets: inherit
with:
MATLAB_NAME: R2022a
DOCKERHUB_REPO: demartis/matlab-runtime
DOCKERHUB_TAG: R2022a
DOCKER_CONTEXT: R2022a
Expand All @@ -136,6 +149,7 @@ jobs:
uses: ./.github/workflows/sub_test.yaml
secrets: inherit
with:
MATLAB_NAME: R2022a
DOCKERHUB_REPO: demartis/matlab-runtime
DOCKERHUB_TAG: R2022a-meshlab
DOCKER_CONTEXT: R2022a-meshlab
Expand All @@ -144,6 +158,7 @@ jobs:
uses: ./.github/workflows/sub_test.yaml
secrets: inherit
with:
MATLAB_NAME: R2022b
DOCKERHUB_REPO: demartis/matlab-runtime
DOCKERHUB_TAG: R2022b
DOCKER_CONTEXT: R2022b
Expand All @@ -153,6 +168,7 @@ jobs:
uses: ./.github/workflows/sub_test.yaml
secrets: inherit
with:
MATLAB_NAME: R2022b
DOCKERHUB_REPO: demartis/matlab-runtime
DOCKERHUB_TAG: R2022b-meshlab
DOCKER_CONTEXT: R2022b-meshlab
Expand All @@ -161,6 +177,7 @@ jobs:
uses: ./.github/workflows/sub_test.yaml
secrets: inherit
with:
MATLAB_NAME: R2023a
DOCKERHUB_REPO: demartis/matlab-runtime
DOCKERHUB_TAG: R2023a
DOCKER_CONTEXT: R2023a
Expand All @@ -170,6 +187,7 @@ jobs:
uses: ./.github/workflows/sub_test.yaml
secrets: inherit
with:
MATLAB_NAME: R2023a
DOCKERHUB_REPO: demartis/matlab-runtime
DOCKERHUB_TAG: R2023a-meshlab
DOCKER_CONTEXT: R2023a-meshlab
Expand All @@ -178,6 +196,7 @@ jobs:
uses: ./.github/workflows/sub_test.yaml
secrets: inherit
with:
MATLAB_NAME: R2023b
DOCKERHUB_REPO: demartis/matlab-runtime
DOCKERHUB_TAG: R2023b
DOCKER_CONTEXT: R2023b
Expand All @@ -188,6 +207,7 @@ jobs:
uses: ./.github/workflows/sub_test.yaml
secrets: inherit
with:
MATLAB_NAME: R2023b
DOCKERHUB_REPO: demartis/matlab-runtime
DOCKERHUB_TAG: R2023b-meshlab
DOCKER_CONTEXT: R2023b-meshlab
Expand Down
13 changes: 6 additions & 7 deletions generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,25 +211,24 @@ def create_folder(folder_name):
latest_name = builds[-1][0]
for build in builds:
d_name = build[0]

ci_action += f"""
{d_name}:
uses: ./.github/workflows/sub_release.yaml
secrets: inherit
with:
MATLAB_NAME: {d_name}
DOCKERHUB_REPO: demartis/matlab-runtime
DOCKERHUB_TAG: {d_name}
DOCKER_CONTEXT: {d_name}{str.format('{0} is_latest: true{0}', cr) if latest_name == d_name else cr}
MATLAB_NAME: {d_name}
{d_name}-meshlab:
needs: [ {d_name} ]
uses: ./.github/workflows/sub_release.yaml
secrets: inherit
with:
MATLAB_NAME: {d_name}
DOCKERHUB_REPO: demartis/matlab-runtime
DOCKERHUB_TAG: {d_name}-meshlab
DOCKER_CONTEXT: {d_name}-meshlab{str.format('{0} is_latest_meshlab: true{0}', cr) if latest_name == d_name else cr}
MATLAB_NAME: {d_name}"""
DOCKER_CONTEXT: {d_name}-meshlab{str.format('{0} is_latest_meshlab: true{0}', cr) if latest_name == d_name else cr}"""

with open(os.path.join('.github', 'workflows', 'ci.yaml'), 'w') as f:
f.write(ci_action)
Expand Down Expand Up @@ -271,19 +270,19 @@ def create_folder(folder_name):
uses: ./.github/workflows/sub_test.yaml
secrets: inherit
with:
MATLAB_NAME: {d_name}
DOCKERHUB_REPO: demartis/matlab-runtime
DOCKERHUB_TAG: {d_name}
DOCKER_CONTEXT: {d_name}{str.format('{0} is_latest: true{0}', cr) if latest_name == d_name else cr}
MATLAB_NAME: {d_name}
{d_name}-meshlab:
needs: [ {d_name} ]
uses: ./.github/workflows/sub_test.yaml
secrets: inherit
with:
MATLAB_NAME: {d_name}
DOCKERHUB_REPO: demartis/matlab-runtime
DOCKERHUB_TAG: {d_name}-meshlab
DOCKER_CONTEXT: {d_name}-meshlab{str.format('{0} is_latest_meshlab: true{0}', cr) if latest_name == d_name else cr}
MATLAB_NAME: {d_name}"""
DOCKER_CONTEXT: {d_name}-meshlab{str.format('{0} is_latest_meshlab: true{0}', cr) if latest_name == d_name else cr}"""

with open(os.path.join('.github', 'workflows', 'ci_test.yaml'), 'w') as f:
f.write(ci_action)
Expand Down

0 comments on commit 3c0b8d8

Please sign in to comment.