This commit is contained in:
2023-03-12 18:47:55 -07:00
parent 9850bc6058
commit 23c84debae
3 changed files with 4 additions and 3 deletions

View File

@@ -10,8 +10,8 @@ RUN chmod +x /entrypoint.sh
COPY install-dotnet.sh / COPY install-dotnet.sh /
RUN bash /install-dotnet.sh RUN bash /install-dotnet.sh
COPY UnityBuilder /usr/bin/ COPY UnityBuilder /usr/local/bin/
RUN chmod +x /usr/bin/UnityBuilder RUN chmod +x /usr/local/bin/UnityBuilder
ENTRYPOINT ["/entrypoint.sh"] ENTRYPOINT ["/entrypoint.sh"]
USER unity USER unity

View File

@@ -27,7 +27,7 @@ fi
if [[ "$SERIAL" == "public" ]]; then if [[ "$SERIAL" == "public" ]]; then
unity-editor $DEFAULT_ARGS -serial $SERIAL -username $EMAIL -password $PASSWORD unity-editor $DEFAULT_ARGS -serial $SERIAL -username $EMAIL -password $PASSWORD
else else
/usr/bin/UnityBuilder -i unity-editor -u $EMAIL -p $PASSWORD UnityBuilder -i unity-editor -u $EMAIL -p $PASSWORD
fi fi
#Run the command. #Run the command.

View File

@@ -19,6 +19,7 @@ runs:
#This is a base "mock" image which is replaced by the correct image in the "unity-command" action at runtime. #This is a base "mock" image which is replaced by the correct image in the "unity-command" action at runtime.
image: docker://unityci/base:latest image: docker://unityci/base:latest
args: args:
- /entrypoint.sh
- ${{ inputs.serial }} - ${{ inputs.serial }}
- ${{ inputs.email }} - ${{ inputs.email }}
- ${{ inputs.password }} - ${{ inputs.password }}