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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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
+2 −2
Original line number Diff line number Diff line
@@ -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

+1 −1
Original line number Diff line number Diff line
@@ -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}"