Skip to content
Snippets Groups Projects
Commit 87dee659 authored by nimrod's avatar nimrod
Browse files

Rename the runner registration token environment variable.

Only externally (the runner still uses the same environment variable). I
now have it in the .bashrc.private file so it needs to be more specific.
parent efcd9120
No related branches found
No related tags found
No related merge requests found
......@@ -16,7 +16,7 @@ containers. But the jobs fail is the runner is recreated during the job. The
workaround is the `deploy` script.
```
REGISTRATION_TOKEN='INSERT_TOKEN' ./deploy
GITLAB_REGISTRATION_TOKEN='INSERT_TOKEN' ./deploy
```
## License
......
......@@ -29,9 +29,9 @@ _deploy() {
unset RUNNER_NAME
}
if [ -z "${REGISTRATION_TOKEN:-}" ]
if [ -z "${GITLAB_REGISTRATION_TOKEN:-}" ]
then
echo "REGISTRATION_TOKEN isn't set." >&2
echo "GITLAB_REGISTRATION_TOKEN isn't set." >&2
exit 1
fi
......
......@@ -8,7 +8,7 @@ services:
CI_SERVER_URL: "${CI_SERVER_URL:-https://git.shore.co.il}"
DOCKER_IMAGE: registry.shore.co.il/ci-images:docker
DOCKER_NETWORK_MODE: &network gitlab-runner
REGISTRATION_TOKEN: "${REGISTRATION_TOKEN}"
REGISTRATION_TOKEN: "${GITLAB_REGISTRATION_TOKEN}"
RUNNER_NAME: "${RUNNER_NAME}"
REGISTER_RUN_UNTAGGED: "${RUN_UNTAGGED:-true}"
RUNNER_TAG_LIST: "${RUNNER_NAME}"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment