Build config using bash script

This commit is contained in:
Tim Schubert 2018-09-21 12:46:11 +02:00
parent bb3737b1a3
commit 946dbd22e6
2 changed files with 8 additions and 10 deletions

12
build-config.sh Executable file
View file

@ -0,0 +1,12 @@
#!/bin/sh
cat > python-gitlab.cfg <<EOF
[global]
default = default
ssl_verify = true
[default]
url = $(echo ${CI_PROJECT_URL} | cut -d '/' -f -3)
api_version = 4
private_token = ${PRIVATE_API_TOKEN}
EOF