Skip to content

Create Docker images matching tag and MAJOR version

Fabien Catteau requested to merge ee-6797 into master

What does this MR do?

It changes the CI config file included by the analyzer projects to generate Docker images with new tags:

  • if git tag, with tag matching the git tag (without leading v)
  • if git tag, with tag matching the MAJOR of the analyzer/common version (manual job)
  • if master, with edge tag
  • if branch, with tag matching branch name

The manual job thats builds the MAJOR image triggers the deploy stage that builds the latest image.

Examples:

registry.gitlab.com/gitlab-org/security-products/analyzers/flawfinder:1.6.0
registry.gitlab.com/gitlab-org/security-products/analyzers/flawfinder:1
registry.gitlab.com/gitlab-org/security-products/analyzers/flawfinder:edge

Why was this MR needed?

To ease the release process and generate the Docker images of the SAST analyzers more efficiently.

https://gitlab.com/gitlab-org/gitlab-ee/issues/6797

sast!108 (merged) depends on the images that this new pipeline with build and push.

What are the relevant issue numbers?

https://gitlab.com/gitlab-org/gitlab-ee/issues/7139

Edited by Fabien Catteau

Merge request reports