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

1
dist/ci/docker-run vendored
View File

@ -4,6 +4,7 @@ eval $(./dist/ci/osc-credentials)
docker run --privileged --rm -it \
-v ~/docker-tmp:/var/tmp \
-e OBS_API="${apiurl:-$OBS_API}" \
-e OBS_USER="${user:-$OBS_USER}" \
-e OBS_PASS="${pass:-$OBS_PASS}" \
-e OBS_EMAIL="${email:-$OBS_EMAIL}" \

View File

@ -9,5 +9,5 @@ except:
apiurl = conf.config['apiurl']
cp = conf.get_configParser()
for key in ('user', 'pass', 'email'):
for key in ('apiurl', 'user', 'pass', 'email'):
print('{}="{}"'.format(key, cp.get(apiurl, key, raw=True)))

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}