Variable image with ARG, ENV, Matrix

This commit is contained in:
Webber 2019-12-09 23:21:51 +01:00
parent 777b3d1fd1
commit e1fcd8fc3f
2 changed files with 8 additions and 2 deletions

View File

@ -7,6 +7,10 @@ jobs:
buildForWebGL:
name: Build for WebGL 🕸
runs-on: ubuntu-latest
strategy:
matrix:
version: [2019.2.11f1, 2018.4.13f1]
target: [webgl, android]
steps:
# Checkout repository (required to test local actions)
- name: Checkout repository
@ -23,6 +27,8 @@ jobs:
id: buildStep
uses: ./
env:
IMAGE_VERSION: ${{ matrix.version }}
IMAGE_TARGET: ${{ matrix.target }}
UNITY_PROJECT_PATH: test-project
BUILD_NAME: TestBuild
BUILD_TARGET: WebGL

View File

@ -1,5 +1,5 @@
ARG IMAGE_VERSION=2019.2.11f1
ARG IMAGE_TARGET=webgl
ARG IMAGE_VERSION=2019.0.00f0
ENV IMAGE_TARGET=webgl
FROM gableroux/unity3d:${IMAGE_VERSION}-${IMAGE_TARGET}