Skip to content

Make CNG release similar to omnibus-gitlab

Balasankar 'Balu' C requested to merge play-jobs-in-cng into master

Publishing CNG images is currently done in the tag pipeline of Charts, during which they are pulled from dev registry and pushed to com registry. However, since Charts are released for non-RC versions only, this means CNG images are also released for non-RC versions only. This, however means, test pipeline for stable branches of Charts fail because the images aren't available.

This MR moves the CNG publishing to CNG pipeline, as a manual job, similar to what we do with packages in omnibus-gitlab. Then, as part of the publish rake task, we play this manual job.

In Charts pipeline, we will add a job to wait for these images to appear in gitlab.com registry before continuing with the pipeline.

Related gitlab-org/build/CNG!235 (merged)

Changes made in this MR
  1. Common tasks to "publish" an artifact (i.e, play manual jobs) is now abstracted to a BasePublishService class.
  2. omnibus-gitlab and CNG publishing services extend this class, and alter the project and play_stages.
  3. Modify specs and fixtures to reflect the new location of the publishing code.
Edited by Balasankar 'Balu' C

Merge request reports