zuul-jobs/playbooks/docker-image
Jean-Philippe Evrard ad1bc75197 Revert "Explicitly store date facts for promote"
This reverts commit ef7ab67356.

It does not work, because running setup is not
allowed in promote pipelines (even if it's a partial
fact gathering). This is a problem, as it will
cause all the promote pipelines to fail.

It should therefore be reverted as fast as possible.

Change-Id: Ib0b6ef059da4c65102343d7b4f26fee6be180ebc
2019-06-07 07:21:36 +00:00
..
credentials.rst Add docker image build jobs 2019-01-22 09:02:44 -08:00
pre.yaml Revert "Docker: use the buildset registry if defined" 2019-03-08 12:55:57 -08:00
promote.yaml Revert "Explicitly store date facts for promote" 2019-06-07 07:21:36 +00:00
README.rst Add docker image build jobs 2019-01-22 09:02:44 -08:00
run.yaml Add docker image build jobs 2019-01-22 09:02:44 -08:00
upload.yaml Add docker image build jobs 2019-01-22 09:02:44 -08:00

This is one of a collection of jobs which are designed to work together to build, upload, and promote docker images in a gating context:

  • :zuulbuild-docker-image: Build the images.
  • :zuulupload-docker-image: Build and stage the images on dockerhub.
  • :zuulpromote-docker-image: Promote previously uploaded images.

The :zuulbuild-docker-image job is designed to be used in a check pipeline and simply builds the images to verify that the build functions.

The :zuulupload-docker-image job builds and uploads the images to Docker Hub, but only with a single tag corresponding to the change ID. This job is designed in a gate pipeline so that the build produced by the gate is staged and can later be promoted to production if the change is successful.

The :zuulpromote-docker-image job is designed to be used in a promote pipeline. It requires no nodes and runs very quickly on the Zuul executor. It simply re-tags a previously uploaded image for a change with whatever tags are supplied by :zuulbuild-docker-image.docker_images.tags. It also removes the change ID tag from the repository in Docker Hub, and removes any similar change ID tags more than 24 hours old. This keeps the repository tidy in the case that gated changes fail to merge after uploading their staged images.

They all accept the same input data, principally a list of dictionaries representing the images to build. YAML anchors can be used to supply the same data to all three jobs.

Job Variables