Skip to content

Auto build/push docker (see platform#8755).

micah requested to merge micah/bitmask_android:feat/dind into master

When the docker files in the docker directory are changed, the docker build CI stage is triggered to build the docker image and push it to the android container registry.

This is part of an effort to move all the docker images into their own project's container registry, and to build/provide them automatically (see platform#8755 (closed)).

This is accomplished by the following:

  • added the necessary overlay DOCKER_DRIVER variable to .gitlab-ci.yml
  • added docker stage build jobs for each dockerfile, with docker:dind service enabled
  • added LEAP_CODE_O_MATIC_PRIVATE_TOKEN to project
  • docker push the resulting image to android container registry

Note: until https://gitlab.com/gitlab-org/gitlab-ce/issues/19813 is resolved, we have to use this method. This means that the docker stage jobs will run on each push, but they are designed to quickly determine if they should continue to do the builds, thus making the jobs succeed without re-building the images, unless necessary.

Several clean-ups of the Dockerfiles were also done to reduce layers and improve building.

Merge request reports

Loading