Added docker CI/CD job

This commit is contained in:
OpenSauce04 2025-12-01 21:51:29 +00:00 committed by OpenSauce
parent 6866c01524
commit a34ad3bff8
3 changed files with 32 additions and 0 deletions

4
.ci/docker.sh Executable file
View File

@ -0,0 +1,4 @@
mkdir build
docker build -f docker/azahar-room/Dockerfile -t azahar-room .
docker save azahar-room:latest > build/azahar-room.dockerimage

View File

@ -22,6 +22,7 @@ jobs:
with:
name: source
path: artifacts/
linux:
runs-on: ubuntu-latest
strategy:
@ -61,6 +62,7 @@ jobs:
with:
name: ${{ env.OS }}-${{ env.TARGET }}
path: artifacts/
macos:
runs-on: ${{ (matrix.target == 'x86_64' && 'macos-15-intel') || 'macos-26' }}
strategy:
@ -102,6 +104,7 @@ jobs:
with:
name: ${{ env.OS }}-${{ env.TARGET }}
path: artifacts/
macos-universal:
runs-on: macos-26
needs: macos
@ -133,6 +136,7 @@ jobs:
with:
name: ${{ env.OS }}-${{ env.TARGET }}
path: artifacts/
windows:
runs-on: windows-latest
strategy:
@ -210,6 +214,7 @@ jobs:
with:
name: ${{ env.OS }}-${{ env.TARGET }}
path: artifacts/
android:
runs-on: ubuntu-latest
env:
@ -261,3 +266,23 @@ jobs:
with:
name: ${{ env.OS }}-${{ env.TARGET }}
path: src/android/app/artifacts/
docker:
runs-on: ubuntu-latest
container:
image: docker:dind
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Build Docker image
run: ./.ci/docker.sh
- name: Move Docker image to artifacts directory
run: |
mkdir -p artifacts
mv build/*.dockerimage artifacts/
- name: Upload
uses: actions/upload-artifact@v4
with:
name: docker
path: artifacts/

3
.gitignore vendored
View File

@ -10,6 +10,9 @@ src/installer/*.exe
src/common/scm_rev.cpp
.travis.descriptor.json
# Docker image files
*.dockerimage
# Project/editor files
*.swp
*.kdev4