From 7bd497a00c85bb3be4e45409940500f580f5214f Mon Sep 17 00:00:00 2001 From: Gyubong Lee Date: Tue, 4 Jun 2024 05:51:14 +0000 Subject: [PATCH] feat: build on docker container --- .github/workflows/release_aarch64.yml | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release_aarch64.yml b/.github/workflows/release_aarch64.yml index 75000f8..4cfd75d 100644 --- a/.github/workflows/release_aarch64.yml +++ b/.github/workflows/release_aarch64.yml @@ -11,16 +11,27 @@ jobs: target: ["aarch64"] os: ["ubuntu18.04", "ubuntu20.04", "ubuntu22.04", "alpine"] steps: - - name: Setup QEMU - uses: docker/setup-qemu-action@v1 + - name: Set up QEMU + uses: docker/setup-qemu-action@v2 with: platforms: arm64 + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v2 + + - name: Build Docker image + uses: docker/build-push-action@v4 + with: + context: . + load: true + platforms: linux/arm64 + tags: lablup/backend.ai-hook:latest + - uses: actions/checkout@v4 - name: Build libbaihook run: | - ./build.sh ${{ matrix.os }} + docker run --rm -v "$(pwd)" lablup/backend.ai-hook:latest /bin/bash -c "./build.sh ${{ matrix.os }}" rm -rf Makefile - name: Release to GitHub