mirror of
https://github.com/game-ci/unity-builder.git
synced 2025-07-07 20:35:33 -04:00
Variable image with ARG, ENV, Matrix
This commit is contained in:
parent
777b3d1fd1
commit
e1fcd8fc3f
6
.github/workflows/main.yml
vendored
6
.github/workflows/main.yml
vendored
@ -7,6 +7,10 @@ jobs:
|
|||||||
buildForWebGL:
|
buildForWebGL:
|
||||||
name: Build for WebGL 🕸
|
name: Build for WebGL 🕸
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
version: [2019.2.11f1, 2018.4.13f1]
|
||||||
|
target: [webgl, android]
|
||||||
steps:
|
steps:
|
||||||
# Checkout repository (required to test local actions)
|
# Checkout repository (required to test local actions)
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
@ -23,6 +27,8 @@ jobs:
|
|||||||
id: buildStep
|
id: buildStep
|
||||||
uses: ./
|
uses: ./
|
||||||
env:
|
env:
|
||||||
|
IMAGE_VERSION: ${{ matrix.version }}
|
||||||
|
IMAGE_TARGET: ${{ matrix.target }}
|
||||||
UNITY_PROJECT_PATH: test-project
|
UNITY_PROJECT_PATH: test-project
|
||||||
BUILD_NAME: TestBuild
|
BUILD_NAME: TestBuild
|
||||||
BUILD_TARGET: WebGL
|
BUILD_TARGET: WebGL
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
ARG IMAGE_VERSION=2019.2.11f1
|
ARG IMAGE_VERSION=2019.0.00f0
|
||||||
ARG IMAGE_TARGET=webgl
|
ENV IMAGE_TARGET=webgl
|
||||||
|
|
||||||
FROM gableroux/unity3d:${IMAGE_VERSION}-${IMAGE_TARGET}
|
FROM gableroux/unity3d:${IMAGE_VERSION}-${IMAGE_TARGET}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user