moved the docker stuff here

This commit is contained in:
Lachee 2025-05-07 08:52:03 +10:00
parent 0a2ab00652
commit c16def4bed
3 changed files with 81 additions and 0 deletions

48
.gitea/build-all.yaml Normal file
View File

@ -0,0 +1,48 @@
name: Create Images
on:
workflow_dispatch:
push:
branches:
- main
jobs:
build-docker:
runs-on: ubuntu-latest
env:
GAMECI_VERSION: 3
PLATFORM: linux/amd64
DOCKER_REGISTRY: docker.lakes.house
strategy:
matrix:
platform:
- webgl
- android
version:
- 6000.0.35f1
steps:
- uses: actions/checkout@v4
- name: Login to Docker Registry
uses: docker/login-action@v3
with:
registry: ${{ env.DOCKER_REGISTRY }} # usual credentials for bastion.local
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build Docker Image
run: |
BASE_IMAGE=unityci/editor:ubuntu-${UNITY_VERSION}-${UNITY_PLATFORM}-${GAME_CI_VERSION}
TAG=${{ env.DOCKER_REGISTRY }}/unityci/editor:ubuntu-${UNITY_VERSION}-${UNITY_PLATFORM}-runner
docker build \
--platform ${PLATFORM} \
--build-arg GAME_CI_UNITY_EDITOR_IMAGE=${BASE_IMAGE} \
-t ${TAG} \
Dockerfiles/UnityEditor.Dockerfile
env:
UNITY_VERSION: ${{ matrix.version }}
UNITY_PLATFORM: ${{ matrix.platform }}

View File

@ -0,0 +1,27 @@
ARG GAME_CI_UNITY_EDITOR_IMAGE=unityci/editor
FROM $GAME_CI_UNITY_EDITOR_IMAGE
# Setup Dependants
RUN apt-get update && \
apt-get install -y \
git \
curl \
gcc \
make \
libssl-dev \
zlib1g-dev \
libsqlite3-dev
# Set up Node.js environment for github actions
RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && \
apt-get install -y nodejs && \
npm install -g npm@latest
# Set up the scripts
RUN git clone --depth=1 https://github.com/game-ci/unity-builder.git /gameci && \
cp -rf /gameci/dist/platforms/ubuntu/steps /steps && \
cp -rf /gameci/dist/default-build-script /UnityBuilderAction && \
cp /gameci/dist/platforms/ubuntu/entrypoint.sh /entrypoint.sh
ENTRYPOINT [ "/entrypoint.sh" ]

6
images.yaml Normal file
View File

@ -0,0 +1,6 @@
images:
versions:
- 6000.0.35f1
modules:
- android
- webgl