Instead of performing a slim rpm build and check directly inside the container a proper build is performed using `osc build`. The target package is checked out the _service file pointed at the local copy and then `osc service disabledrun` before building.
12 lines
358 B
Bash
Executable File
12 lines
358 B
Bash
Executable File
#!/bin/bash
|
|
|
|
eval $(./dist/ci/osc-credentials)
|
|
|
|
docker run --privileged --rm -it \
|
|
-v ~/docker-tmp:/var/tmp \
|
|
-e OBS_USER="${user:-$OBS_USER}" \
|
|
-e OBS_PASS="${pass:-$OBS_PASS}" \
|
|
-e OBS_EMAIL="${email:-$OBS_EMAIL}" \
|
|
-e OBS_PACKAGE="${OBS_PACKAGE:-openSUSE:Tools/openSUSE-release-tools}" \
|
|
spec "${1:-obs-build-target}" "${2:-openSUSE_Factory}"
|