Specify build args on job level

This commit is contained in:
Webber 2019-12-09 23:54:38 +01:00
parent 149b366059
commit 50e3484275

View File

@ -12,6 +12,10 @@ jobs:
matrix:
version: [2019.2.11f1, 2018.4.13f1]
target: [webgl, android]
container:
options:
- --build-arg IMAGE_VERSION=${{ matrix.version }}
- --build-arg IMAGE_TARGET=${{ matrix.target }}
steps:
# Checkout repository (required to test local actions)
- name: Checkout repository
@ -27,12 +31,6 @@ jobs:
- name: Build project
id: buildStep
uses: ./
container:
options:
- --env IMAGE_VERSION=${{ matrix.version }}
- --env IMAGE_TARGET=${{ matrix.target }}
- --build-arg IMAGE_VERSION=${{ matrix.version }}
- --build-arg IMAGE_TARGET=${{ matrix.target }}
env:
UNITY_PROJECT_PATH: test-project
BUILD_NAME: TestBuild