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