bridgehead/lib/gitlab-token-helper.sh

11 lines
210 B
Bash
Raw Permalink Normal View History

#!/bin/bash
[ "$1" = "get" ] || exit
source /var/cache/bridgehead/secrets/gitlab_token
# Any non-empty username works, only the token matters
cat << EOF
username=bk
password=$BRIDGEHEAD_CONFIG_REPO_TOKEN
EOF