Skip to content

Rewrite Image building to Mage to export them for verification

Georgi N. Georgiev requested to merge export-known-resources-for-validation into main

What does this MR do?

Part of #36510

This is very much work in progress towards having better CI but this MR became pretty big as of right now so I'll put a stop to it for now.

This MR rewrites the Runner and Helper building/pushing jobs to Mage while defining a common interface for writing complex mage targets revolving around defining dependencies, artifacts and env variables to facilitate easier to reproduce builds locally and in CI. Read magefiles/docs/writing_mage_targets.md for details on that.

  • I've removed env variables from _common.gitlab-ci.yaml where possible. This makes targets much easier to reproduce locally.
  • All env variables that can - have default values defined in the code closest to the mage target. All the default values are defined precisely once (wherever possible as of right now). Before we had multiple declarations of checksums for example.
  • We'll start pushing dev images - !4295 (diffs). This is part of the progress towards making MR pipelines closer to release pipelines. Also makes possible to run the resource check jobs for MR pipelines as well.

The following follow-up issues will be addressed in the future:

Why was this MR needed?

What's the best way to test this MR?

What are the relevant issue numbers?

Closes #36936 (closed), #36937 (closed)

Edited by Georgi N. Georgiev

Merge request reports

Loading