Skip to content
Snippets Groups Projects
Commit 8bcab427 authored by Emmanuel Bruno's avatar Emmanuel Bruno
Browse files

fixes multiarch docker CI.

parent 0d656b5b
Branches
Tags
No related merge requests found
...@@ -9,9 +9,13 @@ on: ...@@ -9,9 +9,13 @@ on:
- 'v*.*.*' - 'v*.*.*'
workflow_dispatch: workflow_dispatch:
jobs: jobs:
docker: docker:
runs-on: [self-hosted, Linux, X64] strategy:
matrix:
platform: ["linux/amd64","linux/arm64/v8"]
runs-on: [self-hosted, "${{ matrix.platform }}"]
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v3 uses: actions/checkout@v3
...@@ -35,15 +39,20 @@ jobs: ...@@ -35,15 +39,20 @@ jobs:
with: with:
username: ${{ secrets.DOCKERHUB_USERNAME }} username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }} password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Set up QEMU #- name: Set up QEMU
uses: docker/setup-qemu-action@v2 # uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx - name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2 uses: docker/setup-buildx-action@v2
with:
driver: docker
# driver: docker-container
# driver-opts: |
# network=host
- name: Build and push - name: Build and push
uses: docker/build-push-action@v4 uses: docker/build-push-action@v4
with: with:
context: . context: .
platforms: linux/amd64,linux/arm64/v8 # platforms: ${{ matrix.platform }}
push: ${{ github.event_name != 'pull_request' }} push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }} tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }} labels: ${{ steps.meta.outputs.labels }}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment