dist/ci: provide OBS_API parameter.

This commit is contained in:
Jimmy Berry
2017-09-01 18:34:34 -05:00
parent 522b05eac4
commit 846eb45a6f
3 changed files with 6 additions and 3 deletions

6
dist/ci/osc-init vendored
View File

@@ -1,9 +1,11 @@
#!/bin/bash
OBS_API="${OBS_API:-https://api.opensuse.org/public}"
cat << eom > ~/.oscrc
[general]
apiurl = https://api.opensuse.org
[https://api.opensuse.org]
apiurl = $OBS_API
[$OBS_API]
user = ${OBS_USER:-example}
pass = ${OBS_PASS:-example}
email = ${OBS_EMAIL:-example@example.com}