Skip to content

Commit

Permalink
add arm archi to the build (#3)
Browse files Browse the repository at this point in the history
Co-authored-by: arezki <arezki.lebdiri>
  • Loading branch information
arezki1990 committed Jul 25, 2023
1 parent 2b28ec9 commit 9595309
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,27 @@ jobs:
strategy:
matrix:
jdk_version: [8, 11]
platform:
- linux/amd64
- linux/arm/v6
- linux/arm/v7
- linux/arm64
environment: docker-hub
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Set up QEMU
uses: docker/setup-qemu-action@v2

- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}


- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v2
Expand All @@ -42,6 +51,7 @@ jobs:
tags: infrahelpers/dpp:jdk${{ matrix.jdk_version }}
cache-from: type=gha
cache-to: type=gha,mode=max
platforms: ${{ matrix.platform }}

build_scala_images:
needs: build_base_images
Expand Down Expand Up @@ -86,12 +96,18 @@ jobs:
matrix:
jdk_version: [8, 11]
python_micro_version: [3.8.16, 3.9.16, 3.10.11, 3.11.3 ] # Use the latest micro versions of each minor version
platform:
- linux/amd64
- linux/arm/v6
- linux/arm/v7
- linux/arm64
environment: docker-hub
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
Expand Down Expand Up @@ -131,4 +147,5 @@ jobs:
infrahelpers/dpp:jdk${{ matrix.jdk_version }}-python${{ matrix.python_micro_version }}-${{ env.SHA }}
cache-from: type=gha
cache-to: type=gha,mode=max
platforms: ${{ matrix.platform }}

0 comments on commit 9595309

Please sign in to comment.