Add resources folder to mounted docker volumes. Used by activation script to copy over template file for unity licensing server
parent
4ba7a9dfe8
commit
6861abb19e
|
|
@ -4494,6 +4494,7 @@ class Docker {
|
||||||
--volume "${actionFolder}/default-build-script:/UnityBuilderAction:z" \
|
--volume "${actionFolder}/default-build-script:/UnityBuilderAction:z" \
|
||||||
--volume "${actionFolder}/platforms/ubuntu/steps:/steps:z" \
|
--volume "${actionFolder}/platforms/ubuntu/steps:/steps:z" \
|
||||||
--volume "${actionFolder}/platforms/ubuntu/entrypoint.sh:/entrypoint.sh:z" \
|
--volume "${actionFolder}/platforms/ubuntu/entrypoint.sh:/entrypoint.sh:z" \
|
||||||
|
--volume "${actionFolder}/resources:/resources:z" \
|
||||||
${sshAgent ? `--volume ${sshAgent}:/ssh-agent` : ''} \
|
${sshAgent ? `--volume ${sshAgent}:/ssh-agent` : ''} \
|
||||||
${sshAgent ? '--volume /home/runner/.ssh/known_hosts:/root/.ssh/known_hosts:ro' : ''} \
|
${sshAgent ? '--volume /home/runner/.ssh/known_hosts:/root/.ssh/known_hosts:ro' : ''} \
|
||||||
${image} \
|
${image} \
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -79,9 +79,10 @@ elif [[ -n "$UNITY_LICENSING_SERVER" ]]; then
|
||||||
# Custom Unity License Server
|
# Custom Unity License Server
|
||||||
#
|
#
|
||||||
echo "Adding licensing server config"
|
echo "Adding licensing server config"
|
||||||
echo "folder $(pwd) action $(ACTION_FOLDER)"
|
pwd
|
||||||
|
pushd /resources
|
||||||
cat $ACTION_FOLDER/resources/services-config.json.template | tr -d '\r' | sed -e "s/%URL%/$UNITY_LICENSING_SERVER/" > services-config.json
|
pwd
|
||||||
|
cat services-config.json.template | tr -d '\r' | sed -e "s/%URL%/$UNITY_LICENSING_SERVER/" > services-config.json
|
||||||
mv services-config.json /usr/share/unity3d/config/
|
mv services-config.json /usr/share/unity3d/config/
|
||||||
cat /usr/share/unity3d/config/services-config.json
|
cat /usr/share/unity3d/config/services-config.json
|
||||||
# Activate license
|
# Activate license
|
||||||
|
|
@ -91,6 +92,7 @@ elif [[ -n "$UNITY_LICENSING_SERVER" ]]; then
|
||||||
|
|
||||||
# Store the exit code from the verify command
|
# Store the exit code from the verify command
|
||||||
UNITY_EXIT_CODE=$?
|
UNITY_EXIT_CODE=$?
|
||||||
|
popd
|
||||||
else
|
else
|
||||||
#
|
#
|
||||||
# NO LICENSE ACTIVATION STRATEGY MATCHED
|
# NO LICENSE ACTIVATION STRATEGY MATCHED
|
||||||
|
|
|
||||||
|
|
@ -38,6 +38,7 @@ class Docker {
|
||||||
--volume "${actionFolder}/default-build-script:/UnityBuilderAction:z" \
|
--volume "${actionFolder}/default-build-script:/UnityBuilderAction:z" \
|
||||||
--volume "${actionFolder}/platforms/ubuntu/steps:/steps:z" \
|
--volume "${actionFolder}/platforms/ubuntu/steps:/steps:z" \
|
||||||
--volume "${actionFolder}/platforms/ubuntu/entrypoint.sh:/entrypoint.sh:z" \
|
--volume "${actionFolder}/platforms/ubuntu/entrypoint.sh:/entrypoint.sh:z" \
|
||||||
|
--volume "${actionFolder}/resources:/resources:z" \
|
||||||
${sshAgent ? `--volume ${sshAgent}:/ssh-agent` : ''} \
|
${sshAgent ? `--volume ${sshAgent}:/ssh-agent` : ''} \
|
||||||
${sshAgent ? '--volume /home/runner/.ssh/known_hosts:/root/.ssh/known_hosts:ro' : ''} \
|
${sshAgent ? '--volume /home/runner/.ssh/known_hosts:/root/.ssh/known_hosts:ro' : ''} \
|
||||||
${image} \
|
${image} \
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue