Skip to content
Snippets Groups Projects

Adds new preRegistrationScript to run commands before the registration happens

Closed Javion Cai requested to merge javion3/gitlab-runner:javion3-main-patch-94666 into main
4 unresolved threads
Compare and Show latest version
1 file
+ 5
10
Compare changes
  • Side-by-side
  • Inline
+ 5
10
@@ -61,8 +61,8 @@ imagePullPolicy: IfNotPresent
@@ -61,8 +61,8 @@ imagePullPolicy: IfNotPresent
## be retrieved from your GitLab Instance. It is token of already registered runner.
## be retrieved from your GitLab Instance. It is token of already registered runner.
## ref: (we don't yet have docs for that, but we want to use existing token)
## ref: (we don't yet have docs for that, but we want to use existing token)
##
##
# runnerToken: ""
runnerToken: "placeholder"
#
## Unregister all runners before termination
## Unregister all runners before termination
##
##
@@ -116,15 +116,10 @@ checkInterval: 30
@@ -116,15 +116,10 @@ checkInterval: 30
## A custom bash script that will be executed prior to the runner registration
## A custom bash script that will be executed prior to the runner registration
## gitlab-runner process
## gitlab-runner process
#
#
preRegistrationScript: |
#preRegistrationScript: |
if [ -z "${CI_SERVER_TOKEN+1}" ]
# echo "hello"
then
# https://gitlab.com/gitlab-org/charts/gitlab-runner/-/issues/462
echo "Setting CI_SERVER_TOKEN to empty string"
CI_SERVER_TOKEN=""
fi
 
w
## A custom bash script that will be executed prior to the invocation
## A custom bash script that will be executed prior to the invocation
## gitlab-runner process
## gitlab-runner process
#
#
Loading