Commit 9a02b359 authored by nimrod's avatar nimrod
Browse files

Get the registration token from the Keepass database.

parent 33b18191
Loading
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -31,8 +31,10 @@ _deploy() {

if [ -z "${GITLAB_REGISTRATION_TOKEN:-}" ]
then
    echo "GITLAB_REGISTRATION_TOKEN isn't set." >&2
    exit 1
    GITLAB_REGISTRATION_TOKEN="$(ph show --field Password 'shore.co.il/GitLab runner registration token')" || \
        { echo "Failed to get the registration token from the Keepass database." >&2;
          echo "You can set the GITLAB_REGISTRATION_TOKEN environment variable instead." >&2;
          exit 1; }
fi