build joex and restserver for amd64 and arm64 #21
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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" | |