Skip to content

Commit

Permalink
fix docker multiplatform build
Browse files Browse the repository at this point in the history
  • Loading branch information
nullxx committed Mar 1, 2024
1 parent 7b3db59 commit 4f5ee0a
Showing 1 changed file with 22 additions and 6 deletions.
28 changes: 22 additions & 6 deletions .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,31 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Set up Docker
env:
DOCKER_CLI_EXPERIMENTAL: enabled
uses: crazy-max/ghaction-setup-docker@v2
with:
version: v24.0.6
daemon-config: |
{
"features": {
"containerd-snapshotter": true
}
}
- name: Setup QEMU
uses: docker/setup-qemu-action@v3
with:
platforms: linux/amd64,linux/arm64

- name: Set Up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Checkout repository
uses: actions/checkout@v2

# - name: Install Docker
# if: runner.os == 'Linux'
# run: |
# sudo apt-get update
# sudo apt-get install docker.io -y


- name: Build Docker image
run: |
bash build.sh
Expand Down

0 comments on commit 4f5ee0a

Please sign in to comment.