Print the build version when the container starts
This commit is contained in:
2
.github/workflows/build_ci.yml
vendored
2
.github/workflows/build_ci.yml
vendored
@@ -59,6 +59,8 @@ jobs:
|
||||
fi
|
||||
fi
|
||||
|
||||
echo ${VERSION} > ./overlay/version.txt
|
||||
|
||||
DOCKER_PUSH="true"
|
||||
if [[ ${DOCKER_IMAGE} != 'docker.io/josh5/steam-headless' ]]; then
|
||||
DOCKER_PUSH="false"
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
# File Created: Saturday, 8th January 2022 7:08:46 pm
|
||||
# Author: Josh.5 (jsunnex@gmail.com)
|
||||
# -----
|
||||
# Last Modified: Tuesday, 11th January 2022 8:44:17 pm
|
||||
# Last Modified: Saturday, 15th January 2022 11:55:48 pm
|
||||
# Modified By: Josh.5 (jsunnex@gmail.com)
|
||||
###
|
||||
|
||||
@@ -17,6 +17,11 @@ if [ ! -z "$@" ]; then
|
||||
exit $?
|
||||
fi
|
||||
|
||||
# Print the current version (if the file exists)
|
||||
if [[ -f /version.txt ]]; then
|
||||
echo "Version: $(cat /version.txt)"
|
||||
fi
|
||||
|
||||
# Execute all container init scripts
|
||||
for init_script in /etc/cont-init.d/*.sh ; do
|
||||
echo
|
||||
|
||||
Reference in New Issue
Block a user