Skip to content

Build Arm64 Image

Build Arm64 Image #14

Workflow file for this run

name: Build Arm64 Image
on:
workflow_dispatch:
jobs:
build:
runs-on: ${{ matrix.platform.host }}
strategy:
fail-fast: false
matrix:
platform:
- name: linux-x86_64
arch: x86_64
host: ubuntu-latest
- name: linux-arm64
arch: arm64
host: arm64-server
steps:
- name: Check out the repo
uses: actions/checkout@v4
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push Docker image
uses: docker/build-push-action@v6
with:
context: .
file: docker/${{ matrix.platform.name }}/Dockerfile
push: true
tags: ghcr.io/${{ github.repository }}/${{ matrix.platform.arch }}:latest