Skip to content

Commit

Permalink
docker: additionally push arm64 compatible images
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmhewitt committed Feb 23, 2025
1 parent 4d44bb9 commit 7ead26d
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,22 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

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

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
with:
driver-opts: network=host

- name: Build & push the base image to local registry
uses: docker/[email protected]
with:
context: .
push: true
platforms: linux/amd64,linux/arm64
tags: localhost:5000/ubuntu-base:latest

- name: Write the Dockerfile for the ${{ matrix.version }}-${{ matrix.arch }} runtime
Expand All @@ -65,5 +76,6 @@ jobs:
with:
context: .
push: true
platforms: linux/amd64,linux/arm64
file: ${{ matrix.version }}-${{ matrix.arch }}.Dockerfile
tags: ghcr.io/${{ github.repository }}/runtime:${{ matrix.version }}-${{ matrix.arch }}${{ env.additional_tags }}

0 comments on commit 7ead26d

Please sign in to comment.