From 8bcab427753f3e3c1876d5085e2a0397f72db4f1 Mon Sep 17 00:00:00 2001 From: Emmanuel Bruno <emmanuel.bruno@univ-tln.fr> Date: Tue, 28 Mar 2023 18:31:15 +0200 Subject: [PATCH] fixes multiarch docker CI. --- .github/workflows/ci.yml | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b38b255..e5da39c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,9 +9,13 @@ on: - 'v*.*.*' workflow_dispatch: + jobs: docker: - runs-on: [self-hosted, Linux, X64] + strategy: + matrix: + platform: ["linux/amd64","linux/arm64/v8"] + runs-on: [self-hosted, "${{ matrix.platform }}"] steps: - name: Checkout uses: actions/checkout@v3 @@ -35,15 +39,20 @@ jobs: with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} - - name: Set up QEMU - uses: docker/setup-qemu-action@v2 + #- name: Set up QEMU + # uses: docker/setup-qemu-action@v2 - name: Set up Docker Buildx uses: docker/setup-buildx-action@v2 + with: + driver: docker +# driver: docker-container +# driver-opts: | +# network=host - name: Build and push uses: docker/build-push-action@v4 with: context: . - platforms: linux/amd64,linux/arm64/v8 + # platforms: ${{ matrix.platform }} push: ${{ github.event_name != 'pull_request' }} tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} -- GitLab