Skip to content

Commit

Permalink
build and push all platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
tmendenhall committed May 8, 2024
1 parent f724100 commit 8f99295
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ env:
REGISTRY: ghcr.io
# github.repository as <account>/<repo>
IMAGE_NAME: ${{ github.repository }}
PLATFORMS: linux/amd64,linux/arm64


jobs:
Expand Down Expand Up @@ -48,7 +49,7 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3.0.0
with:
platforms: linux/amd64,linux/arm64
platforms: ${{ env.PLATFORMS }}

# Login against a Docker registry except on PR
# https://github.com/docker/login-action
Expand Down Expand Up @@ -82,6 +83,7 @@ jobs:
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
platforms: ${{ env.PLATFORMS }}
cache-from: type=gha
cache-to: type=gha,mode=max

Expand Down

0 comments on commit 8f99295

Please sign in to comment.