After contributing some small build problem fixes for
gitlab-ci-multi-runner and two of it’s dependencies, I’ve made it possible to run CI builds from Gitlab on OpenBSD. The following instructions will help you set it up yourself.
Gitlab-ci-multi-runner and the two dependency tools tools are written in Go, so we obviously need to install
go. The other dependencies we need are
bash (the runner uses it at runtime),
Setting GOPATH correctly
Go needs a place to store the source code and binaries. This can be configured using the GOPATH environment variable. This variable needs to be set in order for the instructions below to work. You can set it to a place in your homedirectory for example:
The first tool that we need it go-bindata. It is used to convert a prebuilt Docker image into Go source code, so that it can be embedded in the final
Build the tool using the following commands.
1 2 3
Building docker cli
The docker client binary is needed next. Build it using the following commands.
1 2 3
Finally, we can build the binary itself using the following commands.
1 2 3 4
$GOPATH/bin should now contain
gitlab-ci-multi-runner. Because Go programs are built statically, you can simply copy it to your other systems, install
bash on them and start running your CI builds. How’s that for deployment?