Skip to content

Commit

Permalink
Extracts image variants (java, python) to an own build matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
maxkratz committed Aug 4, 2023
1 parent dfa6837 commit f721149
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 3 deletions.
30 changes: 28 additions & 2 deletions .github/workflows/build-and-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,33 @@ jobs:
needs: [build-and-push-base]
strategy:
matrix:
year: [2017, 2018, 2019, 2020, 2021, 2022, 2022-gradle, 2023-gradle, 2023-python]
year: [2017, 2018, 2019, 2020, 2021, 2022]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build image
uses: docker/build-push-action@v3
with:
context: ./${{ matrix.year }}
push: true
tags: maxkratz/texlive:${{ matrix.year }}
platforms: linux/amd64,linux/arm64,linux/arm/v7

build-and-push-image-variants:
runs-on: [ubuntu-22.04]
needs: [build-and-push-image]
strategy:
matrix:
year: [2022-gradle, 2023-gradle, 2023-python]
steps:
- name: Checkout
uses: actions/checkout@v3
Expand Down Expand Up @@ -86,7 +112,7 @@ jobs:
platforms: linux/amd64,linux/arm64,linux/arm/v7

# 2016 can not be built with arm64 support
build-and-push-2016-mage:
build-and-push-2016-image:
runs-on: [ubuntu-22.04]
needs: [build-and-push-base]
strategy:
Expand Down
23 changes: 22 additions & 1 deletion .github/workflows/build-only.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,28 @@ jobs:
needs: [build-base]
strategy:
matrix:
year: [2017, 2018, 2019, 2020, 2021, 2022, 2022-gradle, 2023-gradle, 2023-python]
year: [2017, 2018, 2019, 2020, 2021, 2022]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Build image
uses: docker/build-push-action@v3
with:
context: ./${{ matrix.year }}
push: false
tags: maxkratz/texlive:${{ matrix.year }}
platforms: linux/amd64,linux/arm64,linux/arm/v7

build-image-variants:
runs-on: [ubuntu-22.04]
needs: [build-image]
strategy:
matrix:
year: [2022-gradle, 2023-gradle, 2023-python]
steps:
- name: Checkout
uses: actions/checkout@v3
Expand Down

0 comments on commit f721149

Please sign in to comment.