Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
libre
gitlab-runner
Commits
10e7ad99
Commit
10e7ad99
authored
Sep 17, 2019
by
Michał "rysiek" Woźniak
Browse files
entrypoint: exit with error if runner fails to register
parent
e3b8bae2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
entrypoint
entrypoint
+4
-0
No files found.
entrypoint
View file @
10e7ad99
...
...
@@ -35,6 +35,10 @@ if [[ ! -e ${CONFIG_FILE} ]]; then
# register the runner
su gitlab-runner
-c
\
"gitlab-runner register --non-interactive --config '
${
CONFIG_FILE
}
' --url '
${
CI_SERVER_URL
}
' --registration-token '
${
RUNNER_TOKEN
}
' --description '
${
RUNNER_DESCRIPTION
}
' --executor '
${
RUNNER_EXECUTOR
}
'"
if
[
$?
!=
0
]
;
then
echo
" ERROR: failed to register the runner!"
exit
2
fi
else
echo
" ERROR: no config file and no configuration vars!"
exit
1
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment