push other platforms using qemu

This commit is contained in:
Benjamin Auquite 2025-05-02 03:55:29 -05:00 committed by GitHub
parent 018c2ad07a
commit 4f75223678
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,4 +1,4 @@
name: Build and Push Docker Image
name: Build and Push Multi-Platform Docker Image
on:
push:
@ -18,6 +18,11 @@ jobs:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
with:
platforms: 'arm64,arm,amd64'
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
@ -64,6 +69,7 @@ jobs:
with:
context: ./addon/
push: true
platforms: linux/amd64,linux/arm64,linux/arm/v7,linux/arm/v6,linux/386
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha