diff --git a/README.md b/README.md index 2a7d9ef..69cb091 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,11 @@ +Currently on git.devuan.org this fails with: + +Runtime platform arch=amd64 os=linux pid=13015 revision=cf91d5e1 version=11.4.2 +Running in system-mode. + +ERROR: Registering runner... failed runner=******** status=401 Unauthorized +PANIC: Failed to register this runner. Perhaps you are having network problems + This is a Docker image for running GitLab CI builds for packages based on git-buildpackage. A lot of the assumptions of how GitLab CI works diff --git a/gitlab-ci-runner.sh b/gitlab-ci-runner.sh index f24d48f..666be5a 100644 --- a/gitlab-ci-runner.sh +++ b/gitlab-ci-runner.sh @@ -1,11 +1,19 @@ -GITLAB_URL=http://git.devuan.org/cyteen/bluealsa +GITLAB_URL=$1 # https://git.devuan.org/ +USER_NAME=$2 # cyteen +PROJECT=$3 # bluealsa -CI_TOKEN=2hfzsf2Egy1_z9MjnBJb +#SETTINGS_URL=$(curl -sSf "${GITLAB_URL:="https://git.devuan.org/"}/${USER_NAME:="cyteen"}/${PROJECT:="bluealsa"}/settings/ci_cd#js-runners-settings") + +# COORDINATOR_ADDRESS_XPATH="////*[@id="coordinator_address"]" +COORDINATOR_ADDRESS="http://git.devuan.org/" + +# REGISTRATION_TOKEN_XPATH="////*[@id="registration_token"]" +REGISTRATION_TOKEN="2hfzsf2Egy1_z9MjnBJb" gitlab-ci-multi-runner register \ ---non-interactive \ ---url "$(GITLAB_URL)" \ ---registration-token "$(CI_TOKEN)" \ ---description "Generic devuan beowulf package build runner" \ ---executor "docker" \ ---docker-image "cyteen/generic-package-build-runner:v1" + --non-interactive \ + --url "${COORDINATOR_ADDRESS}" \ + --registration-token "${REGISTRATION_TOKEN}" \ + --description "Generic devuan beowulf package build runner" \ + --executor "docker" \ + --docker-image "cyteen/generic-package-build-runner:v1"