diff --git a/README.md b/README.md index 1498dc909d21f699e24f0e066c5ccd018e724111..282e6f410c978b46c37a09c58f50701470863fb4 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/deploy b/deploy index 1168f3834bb16d18ee1fe9a407c499729dbf15f8..99cf2062901dc6bdfe043e05495bc8c2aca20cfe 100755 --- a/deploy +++ b/deploy @@ -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 diff --git a/docker-compose.yml b/docker-compose.yml index 5e16ebb243f0cf7a19c4be1ffff2911824fa29c1..4610990c0a76057649f9de809e0cee94de6bf070 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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}"