Simple CLI tool to fetch GitLab CI variables and output them as exportable environment variables.
brew install containeroo/tap/ci-thief
Fetch GitLab CI variables from a project
Usage:
ci-thief [PROJECT_ID] [flags]
ci-thief [command]
Available Commands:
completion Generate the autocompletion script for the specified shell
help Help about any command
login Login to GitLab
logout Logout from GitLab
version Print the version of ci-thief
Flags:
-h, --help help for ci-thief
-R, --non-recursive Do not fetch variables from parent groups
Use "ci-thief [command] --help" for more information about a command.
Example:
ci-thief 1234
And you will get something like this:
# env scope *
export MY_ENV_VAR='secret value'
# env scope parentgroup/*
export MY_OTHER_ENV_VAR='another secret value'