Skip to content

ci: move to pre-built Docker images

q3k requested to merge q3k/firmware:q3k/ci into master

In this change we modify the CI pipeline to use pre-built Docker images for both build and deploy stages.

To this end, we create docker/{build-env,deploy-env}, two directories containing Dockerfiles describing how to build those images, and scripts to push them to a Docker registry.

Currently, docker.card10.badge.events.ccc.de seems broken. Thus, we push to the Warsaw Hackerspace Docker registry. Since the Docker images will be pulled rarely anyway (as they are cached by build nodes), any low bandwidth-caused slowdowns will not be usually end up in the CI critical path.

We use the same base images and build steps as the existing build steps do. At some point, we might want to unify them to use both the same image, or even unify both images into a single one.

We also bump .gitlab-ci.yml to point to those new images.

You can observe the speedup of the CI system by observing the progression of it on this MR, as it will already act using the new images.

Merge request reports