Compare commits

...
3 Commits
Author SHA1 Message Date
Marcus Young 04145dad12 [Automated 🤖 ] Bump to version 2.290.0 2022-04-12 10:04:32 -05:00
myoung34andGitHub 744edabaa2 Merge pull request #195 from myoung34/fix_auto_update
Fix disable auto update
2022-04-01 21:55:00 -05:00
Marcus Young 8604248edf Fix disable auto update 2022-04-01 21:54:08 -05:00
2 changed files with 12 additions and 6 deletions
+1 -1
View File
@@ -5,7 +5,7 @@ LABEL maintainer="myoung34@my.apsu.edu"
ENV AGENT_TOOLSDIRECTORY=/opt/hostedtoolcache
RUN mkdir -p /opt/hostedtoolcache
ARG GH_RUNNER_VERSION="2.289.2"
ARG GH_RUNNER_VERSION="2.290.0"
ARG TARGETPLATFORM
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
+11 -5
View File
@@ -72,6 +72,13 @@ configure_runner() {
_EPHEMERAL=""
fi
if [ -n "${DISABLE_AUTO_UPDATE}" ]; then
echo "Disable auto update option is enabled"
_AUTO_UPDATE="--disableupdate"
else
_AUTO_UPDATE=""
fi
echo "Configuring"
./config.sh \
--url "${_SHORT_URL}" \
@@ -81,7 +88,9 @@ configure_runner() {
--labels "${_LABELS}" \
--runnergroup "${_RUNNER_GROUP}" \
--unattended \
--replace ${_EPHEMERAL}
--replace \
${_EPHEMERAL} \
${_AUTO_UPDATE}
}
@@ -115,8 +124,5 @@ if [[ ${_DISABLE_AUTOMATIC_DEREGISTRATION} == "false" ]]; then
trap deregister_runner SIGINT SIGQUIT SIGTERM INT TERM QUIT
fi
extra_flags=""
[[ -n "$DISABLE_AUTO_UPDATE" ]] && extra_flags="--disableupdate" || :
# Container's command (CMD) execution
"$@" "${extra_flags}"
exec "$@"