Commit d13ef042 authored by Dom Sekotill's avatar Dom Sekotill
Browse files

Workaround a current issue with runners

https://gitlab.com/gitlab-org/gitlab-runner/issues/4203

Once a fix is released and a docker image containing it is available
this can be reverted.
parent 8410da2f
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -166,6 +166,10 @@ case $COMMAND in
			--run-untagged=true \
			--locked=false

		# Workaround for https://gitlab.com/gitlab-org/gitlab-runner/issues/4203
		sed -i '/\[runners\.custom_build_dir\]/{$!N;/\n\s*\[/!P;D}' \
			${RUNNER_CONFIG}/config.toml

		systemctl enable ${SYSTEMD_UNIT}
		systemctl start ${SYSTEMD_UNIT}
		;;