Skip to content

build joex and restserver for amd64 and arm64 #21

build joex and restserver for amd64 and arm64

build joex and restserver for amd64 and arm64 #21

name: Container Images
on:
workflow_dispatch:
push:
paths:
- images/**
branches:
- feature/multi-platform
jobs:
build-joex:
runs-on: ${{ matrix.platform.runner }}
strategy:
matrix:
image:
- joex
- restserver
platform:
- name: amd64
runner: ubuntu-latest
- name: arm64
runner: ubuntu-latest-arm
steps:
- uses: actions/checkout@v6
- name: Login to GitHub Container Registry
uses: docker/login-action@v4
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build the Docker image
env:
IMAGE: ${{ matrix.image }}
PLATFORM: ${{ matrix.platform.name }}
run: |
cd images
./build.sh "$IMAGE" "$PLATFORM"