This git repository defines a Docker image used in GitHub actions for submitting the packages automatically to OBS.
The resulting docker image is available at https://registry.opensuse.org/.
- The image is rebuilt whenever a commit it pushed to the
master
branch. - The submit.yml GitHub Action commits the configuration to the YaST:Head/ci-yast-rake-container
- The OBS tracks the dependencies and rebuilds the image if any dependant package is updated.
rake osc:commit
command.
If for some reason the automatic rebuild in OBS do not work or it failed you can trigger the rebuild just manually, just like with regular RPM packages.
This image is based on the latest openSUSE Tumbleweed, additionally it contains
the yast-rake Ruby gem package and other
tools needed for running the rake osc:sr
or rake osc:commit
.
From the Git sources:
# you need the rubygem-yast-rake package installed
rake osc:build
From the OBS checkout:
# check it out if not already present
osc co YaST:Head/ci-yast-rake-container
cd YaST:Head/ci-yast-rake-container
# build it
osc build containers
️:warning: This approach is not 100% the same as building the image with osc
described above. The osc
build injects some special modifications to allow
building the image inside the OBS build environment.
ℹ️️ You should prefer using the osc
method if possible, use
the docker
build only as a fallback when the osc
build is not possible or
does not work in your environment.
docker build -t ci-yast-rake-container-test -f package/Dockerfile package/