diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b38b25552c5619a2db1530017cff6ab49eb466be..e5da39c69c3c4e077874b29add148b4453188ef0 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 }}