mirror of
https://github.com/game-ci/unity-builder.git
synced 2025-07-07 20:35:33 -04:00
Change entrypoint setup
This commit is contained in:
parent
ce33464d31
commit
33bdbf6aff
35
dist/platforms/ubuntu/entrypoint.sh
vendored
35
dist/platforms/ubuntu/entrypoint.sh
vendored
@ -13,40 +13,7 @@ mkdir -p "/home/$USERNAME"
|
|||||||
chown $USERNAME:$GROUPNAME "/home/$USERNAME"
|
chown $USERNAME:$GROUPNAME "/home/$USERNAME"
|
||||||
|
|
||||||
# Switch to the host user so we can create files with the correct ownership
|
# Switch to the host user so we can create files with the correct ownership
|
||||||
su - $USERNAME -c '
|
su - $USERNAME -c 'source /steps/runsteps.sh'
|
||||||
#
|
|
||||||
# Run steps
|
|
||||||
#
|
|
||||||
source /steps/set_extra_git_configs.sh
|
|
||||||
source /steps/set_gitcredential.sh
|
|
||||||
source /steps/activate.sh
|
|
||||||
source /steps/build.sh
|
|
||||||
source /steps/return_license.sh
|
|
||||||
|
|
||||||
#
|
|
||||||
# Instructions for debugging
|
|
||||||
#
|
|
||||||
|
|
||||||
if [[ $BUILD_EXIT_CODE -gt 0 ]]; then
|
|
||||||
echo ""
|
|
||||||
echo "###########################"
|
|
||||||
echo "# Failure #"
|
|
||||||
echo "###########################"
|
|
||||||
echo ""
|
|
||||||
echo "Please note that the exit code is not very descriptive."
|
|
||||||
echo "Most likely it will not help you solve the issue."
|
|
||||||
echo ""
|
|
||||||
echo "To find the reason for failure: please search for errors in the log above."
|
|
||||||
echo ""
|
|
||||||
fi;
|
|
||||||
|
|
||||||
#
|
|
||||||
# Exit with code from the build step.
|
|
||||||
#
|
|
||||||
|
|
||||||
# Exiting su
|
|
||||||
exit $BUILD_EXIT_CODE
|
|
||||||
'
|
|
||||||
|
|
||||||
# Exiting main script
|
# Exiting main script
|
||||||
exit $BUILD_EXIT_CODE
|
exit $BUILD_EXIT_CODE
|
||||||
|
34
dist/platforms/ubuntu/steps/runsteps.sh
vendored
Normal file
34
dist/platforms/ubuntu/steps/runsteps.sh
vendored
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
#
|
||||||
|
# Run steps
|
||||||
|
#
|
||||||
|
source /steps/set_extra_git_configs.sh
|
||||||
|
source /steps/set_gitcredential.sh
|
||||||
|
source /steps/activate.sh
|
||||||
|
source /steps/build.sh
|
||||||
|
source /steps/return_license.sh
|
||||||
|
|
||||||
|
#
|
||||||
|
# Instructions for debugging
|
||||||
|
#
|
||||||
|
|
||||||
|
if [[ $BUILD_EXIT_CODE -gt 0 ]]; then
|
||||||
|
echo ""
|
||||||
|
echo "###########################"
|
||||||
|
echo "# Failure #"
|
||||||
|
echo "###########################"
|
||||||
|
echo ""
|
||||||
|
echo "Please note that the exit code is not very descriptive."
|
||||||
|
echo "Most likely it will not help you solve the issue."
|
||||||
|
echo ""
|
||||||
|
echo "To find the reason for failure: please search for errors in the log above."
|
||||||
|
echo ""
|
||||||
|
fi;
|
||||||
|
|
||||||
|
#
|
||||||
|
# Exit with code from the build step.
|
||||||
|
#
|
||||||
|
|
||||||
|
# Exiting su
|
||||||
|
exit $BUILD_EXIT_CODE
|
Loading…
Reference in New Issue
Block a user