amirkabiri commited on
Commit
769f578
·
1 Parent(s): 361f8ee

Update GitHub Actions workflow to build multi-architecture Docker images

Browse files
.github/workflows/docker-build-push.yml CHANGED
@@ -17,6 +17,9 @@ jobs:
17
  - name: Checkout code
18
  uses: actions/checkout@v4
19
 
 
 
 
20
  - name: Set up Docker Buildx
21
  uses: docker/setup-buildx-action@v3
22
 
@@ -41,6 +44,7 @@ jobs:
41
  with:
42
  context: .
43
  push: true
 
44
  tags: ${{ steps.meta.outputs.tags }}
45
  labels: ${{ steps.meta.outputs.labels }}
46
  cache-from: type=registry,ref=${{ secrets.DOCKERHUB_USERNAME }}/duckai:buildcache
 
17
  - name: Checkout code
18
  uses: actions/checkout@v4
19
 
20
+ - name: Set up QEMU
21
+ uses: docker/setup-qemu-action@v3
22
+
23
  - name: Set up Docker Buildx
24
  uses: docker/setup-buildx-action@v3
25
 
 
44
  with:
45
  context: .
46
  push: true
47
+ platforms: linux/amd64,linux/arm64
48
  tags: ${{ steps.meta.outputs.tags }}
49
  labels: ${{ steps.meta.outputs.labels }}
50
  cache-from: type=registry,ref=${{ secrets.DOCKERHUB_USERNAME }}/duckai:buildcache