Skip to content
Snippets Groups Projects
Commit 9a02b359 authored by nimrod's avatar nimrod
Browse files

Get the registration token from the Keepass database.

parent 33b18191
No related branches found
No related tags found
No related merge requests found
Pipeline #1908 passed
...@@ -31,8 +31,10 @@ _deploy() { ...@@ -31,8 +31,10 @@ _deploy() {
if [ -z "${GITLAB_REGISTRATION_TOKEN:-}" ] if [ -z "${GITLAB_REGISTRATION_TOKEN:-}" ]
then then
echo "GITLAB_REGISTRATION_TOKEN isn't set." >&2 GITLAB_REGISTRATION_TOKEN="$(ph show --field Password 'shore.co.il/GitLab runner registration token')" || \
exit 1 { 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 fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment