Skip to content

Commit

Permalink
Enhance GitHub Actions workflow for tag releases by adding QEMU and D…
Browse files Browse the repository at this point in the history
…ocker Buildx setup steps, enabling multi-platform builds for Docker images.
  • Loading branch information
thekoma committed Jan 16, 2025
1 parent b152d6c commit c4962a2
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/on_tag.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,15 @@ jobs:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
with:
platforms: linux/amd64,linux/arm64/v8,linux/arm/v7

- name: Docker meta
id: meta
uses: docker/metadata-action@v5
Expand Down Expand Up @@ -74,6 +83,7 @@ jobs:
context: . # Or specify a subdirectory if needed
file: ./Dockerfile # Path to your Dockerfile
push: true
platforms: linux/amd64,linux/arm64/v8,linux/arm/v7
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

Expand Down

0 comments on commit c4962a2

Please sign in to comment.