game-ci / docker

Series of CI-specialised docker images for Unity.
https://hub.docker.com/u/unityci
MIT License
392 stars 121 forks source link

Fix Image Build Errors on 2023.2.4f1+ #236

Closed AndrewKahr closed 6 months ago

AndrewKahr commented 6 months ago

Changes

Fixes error seen here: https://github.com/game-ci/docker/actions/runs/7361389040

You cannot call a method on a null-valued expression.
At C:\scripts\HelperFunctions.ps1:46 char:8
+ return $rawPath.Replace('{UNITY_PATH}', $UnityPath)
+        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], ParentContainsErrorRec 
   ordException
    + FullyQualifiedErrorId : InvokeMethodOnNull

The command 'powershell.exe -Command if ("$Env:module" -eq 'Android') { .\scripts\SetupAndroid.ps1 }' returned a non-zero code: 1
An image does not exist locally with the tag: unityci/editor
The push refers to repository [docker.io/unityci/editor]
The push refers to repository [docker.io/unityci/editor]
An image does not exist locally with the tag: unityci/editor
An image does not exist locally with the tag: unityci/editor
The push refers to repository [docker.io/unityci/editor]
Error: Process completed with exit code 1.

Checklist

github-actions[bot] commented 6 months ago

Cat Gif