Skip to content

Commit 313d004

Browse files
committed
Set up qemu, use buildx
1 parent affaa74 commit 313d004

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/docker-mod-builder.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ jobs:
2424
runs-on: ubuntu-latest
2525
steps:
2626
- uses: actions/checkout@v3
27-
2827
- name: Dump payload
2928
env:
3029
GITHUB_CONTEXT: ${{ toJson(github) }}
@@ -47,9 +46,12 @@ jobs:
4746
echo "github.repository is ${{ github.repository }}"
4847
echo "github.event.pull_request.base.ref is ${{ github.event.pull_request.base.ref }}"
4948
echo "github.event.pull_request.base.repo.name is ${{ github.event.pull_request.base.repo.name }}"
49+
- name: Set up qemu
50+
run: |
51+
docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
5052
- name: Build image
5153
run: |
52-
docker build --no-cache --build-arg MOD_VERSION=${MOD_VERSION} -t ${{ github.sha }} .
54+
docker buildx build --no-cache --build-arg MOD_VERSION=${MOD_VERSION} -t ${{ github.sha }} .
5355
- name: Tag image (Commit)
5456
if: ${{ github.ref == format('refs/heads/{0}-{1}', env.BASEIMAGE, env.MODNAME) && env.GITHUB_REPO == github.repository }}
5557
run: |

0 commit comments

Comments
 (0)