Skip to content

Commit

Permalink
Setup QEMU and buildx
Browse files Browse the repository at this point in the history
  • Loading branch information
manuel-alvarez-alvarez committed Oct 14, 2024
1 parent df94879 commit e7a5377
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/build-and-push-image.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "Build"
name: "Build and push Docker images"
on:
push:
tags:
Expand Down Expand Up @@ -44,11 +44,19 @@ jobs:
type=raw,value=${{ inputs.tag }},event=workflow_dispatch
type=semver,pattern={{version}}
- name: Build and push Docker image
- name: Docker Setup QEMU
uses: docker/setup-qemu-action@49b3bc8e6bdd4a60e6116a5414239cba5943d3cf # v3.2.0

- name: Docker Setup Buildx
uses: docker/setup-buildx-action@c47758b77c9736f4b2ef4073d4d51994fabfe349 # v3.7.1
with:
use: linux/amd64,linux/arm64,linux/arm/v6,linux/arm/v7,linux/arm/v8

- name: Build and push Docker images
uses: docker/build-push-action@4f58ea79222b3b9dc2c8bbdd6debcef730109a75 # v6.0.0
with:
context: .
push: true
platforms: linux/amd64,linux/arm64
platforms: linux/amd64,linux/arm64,linux/arm/v6,linux/arm/v7,linux/arm/v8
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

0 comments on commit e7a5377

Please sign in to comment.