From 1c6f0cc2a239941469e7e718a589d891ddb7e124 Mon Sep 17 00:00:00 2001 From: kulukami Date: Tue, 3 Dec 2024 14:33:34 +0800 Subject: [PATCH] update scanner ci with qemu arm64 --- .../workflows/Elkeid_plugin_scanner_release.yml | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/.github/workflows/Elkeid_plugin_scanner_release.yml b/.github/workflows/Elkeid_plugin_scanner_release.yml index 0af876f7d..8d49623a4 100644 --- a/.github/workflows/Elkeid_plugin_scanner_release.yml +++ b/.github/workflows/Elkeid_plugin_scanner_release.yml @@ -8,22 +8,27 @@ on: jobs: build_arm64: - runs-on: [self-hosted,linux,ARM64] + runs-on: ubuntu-latest + env: + PLATFORMS: linux/amd64, linux/arm64 continue-on-error: true steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: submodules: false - name: Login to Docker Hub - uses: docker/login-action@v2 + uses: docker/login-action@v3 with: password: ${{secrets.DOCKERHUB_TOKEN}} username: ${{secrets.DOCKERHUB_USERNAME}} + + - name: Set up QEMU + uses: docker/setup-qemu-action@v3 + with: + platforms: linux/arm64 - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 - with: - config: /etc/buildkitd.toml + uses: docker/setup-buildx-action@v3 - name: Build Scanner run: |