ci: Build azahar-room Docker image for ARM64

This commit is contained in:
OpenSauce04 2026-05-24 19:12:04 +01:00 committed by OpenSauce
parent 725544f3b4
commit 383a28795e
2 changed files with 15 additions and 6 deletions

View File

@ -14,7 +14,7 @@ echo "Tag name is: $TAG_NAME"
docker build --no-cache -f docker/azahar-room/Dockerfile -t azahar-room:$TAG_NAME . docker build --no-cache -f docker/azahar-room/Dockerfile -t azahar-room:$TAG_NAME .
mkdir -p build mkdir -p build
FILENAME="azahar-room-$TAG_NAME.dockerimage" FILENAME="azahar-room-$TARGET-$TAG_NAME.dockerimage"
docker save azahar-room:$TAG_NAME > build/$FILENAME docker save azahar-room:$TAG_NAME > build/$FILENAME
echo "DOCKER_IMAGE_PATH=artifacts/$FILENAME" >> $GITHUB_ENV echo "DOCKER_IMAGE_PATH=artifacts/$FILENAME" >> $GITHUB_ENV

View File

@ -396,15 +396,24 @@ jobs:
sbom-path: src/android/app/artifacts/android-${{ matrix.target }}.spdx.json sbom-path: src/android/app/artifacts/android-${{ matrix.target }}.spdx.json
docker: docker:
runs-on: ubuntu-latest strategy:
fail-fast: false
matrix:
include:
- target: x86_64
os: ubuntu-24.04
- target: arm64
os: ubuntu-24.04-arm
runs-on: ${{ matrix.os }}
container: container:
image: docker:dind # Can't use docker:dind for ARM64 because it's Alpine-based, see https://github.com/actions/upload-artifact/issues/739
image: earthbuild/dind:ubuntu-24.04-docker-28.5.2-1
env:
TARGET: ${{ matrix.target }}
steps: steps:
- uses: actions/checkout@v6 - uses: actions/checkout@v6
with: with:
submodules: recursive submodules: recursive
- name: Install tools
run: apk add bash
- name: Fix git ownership - name: Fix git ownership
run: git config --global --add safe.directory . run: git config --global --add safe.directory .
- name: Build Docker image - name: Build Docker image
@ -424,7 +433,7 @@ jobs:
- name: Upload - name: Upload
uses: actions/upload-artifact@v7 uses: actions/upload-artifact@v7
with: with:
name: docker name: docker-${{ env.TARGET }}
path: artifacts/ path: artifacts/
- name: Attest artifacts - name: Attest artifacts
if: ${{ github.ref_type == 'tag' }} if: ${{ github.ref_type == 'tag' }}