From 313d004bd2d059e8cb8a3af792e149b3d127bb7d Mon Sep 17 00:00:00 2001 From: aptalca <541623+aptalca@users.noreply.github.com> Date: Mon, 3 Apr 2023 16:08:23 -0400 Subject: [PATCH] Set up qemu, use buildx --- .github/workflows/docker-mod-builder.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docker-mod-builder.yml b/.github/workflows/docker-mod-builder.yml index 3f1b5e5..8b843ab 100644 --- a/.github/workflows/docker-mod-builder.yml +++ b/.github/workflows/docker-mod-builder.yml @@ -24,7 +24,6 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - name: Dump payload env: GITHUB_CONTEXT: ${{ toJson(github) }} @@ -47,9 +46,12 @@ jobs: echo "github.repository is ${{ github.repository }}" echo "github.event.pull_request.base.ref is ${{ github.event.pull_request.base.ref }}" echo "github.event.pull_request.base.repo.name is ${{ github.event.pull_request.base.repo.name }}" + - name: Set up qemu + run: | + docker run --rm --privileged multiarch/qemu-user-static --reset -p yes - name: Build image run: | - docker build --no-cache --build-arg MOD_VERSION=${MOD_VERSION} -t ${{ github.sha }} . + docker buildx build --no-cache --build-arg MOD_VERSION=${MOD_VERSION} -t ${{ github.sha }} . - name: Tag image (Commit) if: ${{ github.ref == format('refs/heads/{0}-{1}', env.BASEIMAGE, env.MODNAME) && env.GITHUB_REPO == github.repository }} run: |