Skip to content

Commit

Permalink
chore: Build docker image for arm and amd
Browse files Browse the repository at this point in the history
  • Loading branch information
stmh committed Oct 16, 2024
1 parent 1ab0eb9 commit 4e3e2f2
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/docker-build-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,15 @@ on:
branches:
- main
tags:
- '*'
- "*"
workflow_run:
workflows: ["Continuous integration"] # Name of the first workflow
types:
- completed

jobs:
build:
if: ${{ github.event_name == 'push' || (github.event_name == 'workflow_run' && github.event.workflow_run.conclusion == 'success') }}
runs-on: ubuntu-latest

steps:
Expand All @@ -18,6 +23,11 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

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

- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
Expand All @@ -30,6 +40,7 @@ jobs:
with:
context: .
push: true
platforms: linux/amd64,linux/arm64/v8 # Multi-architecture targets
tags: |
ghcr.io/${{ github.repository }}:latest
ghcr.io/${{ github.repository }}:${{ github.sha }}
Expand Down

0 comments on commit 4e3e2f2

Please sign in to comment.