Skip to content

Commit

Permalink
Add ARM64 builds (#108)
Browse files Browse the repository at this point in the history
  • Loading branch information
damyan authored Mar 21, 2024
1 parent 4f00a07 commit 0f3b21a
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/publish-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ permissions:
contents: read
packages: write

env:
platforms: linux/amd64,linux/arm64
registry: ghcr.io
image: ghcr.io/${{ github.repository_owner }}/fedhcp

jobs:
buildAndPush:
runs-on: ubuntu-latest
Expand All @@ -29,7 +34,7 @@ jobs:
id: meta
with:
images: |
ghcr.io/${{ github.repository_owner }}/fedhcp
${{ env.image }}
tags: |
type=semver,pattern={{version}}
type=schedule
Expand Down Expand Up @@ -57,15 +62,15 @@ jobs:
if: github.event_name != 'pull_request'
uses: docker/login-action@v3
with:
registry: ghcr.io
registry: ${{ env.registry }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
timeout-minutes: 40
uses: docker/build-push-action@v5
with:
context: .
platforms: linux/amd64
platforms: ${{ env.platforms }}
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

0 comments on commit 0f3b21a

Please sign in to comment.