Skip to content

Commit

Permalink
Add basic multi-arch build support (#67)
Browse files Browse the repository at this point in the history
Co-authored-by: adamus1red <[email protected]>
  • Loading branch information
adamus1red and adamus1red authored Oct 24, 2022
1 parent e797c95 commit 04e5cee
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/publish-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ on:
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
PLATFORMS: linux/amd64,linux/arm64

jobs:
build-and-push-image:
Expand All @@ -30,6 +31,12 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v3

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

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Log in to the Container registry
uses: docker/login-action@v2
with:
Expand All @@ -48,5 +55,6 @@ jobs:
with:
context: .
push: true
platforms: ${{ env.PLATFORMS }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

0 comments on commit 04e5cee

Please sign in to comment.