Move trigger deploy to kubernetes to a deploy stage

What does this MR do?

Even after Make UBI image wait for downstream pipeline suc... (!5360 - merged) • Georgi N. Georgiev | GitLab • 17.10 the deploy to kubernetes job still doesn't wait for the UBI images downstream pipeline and still runs even when a job in the pipeline fails. This deploys a commit on the k8s cluster that doesn't have an image resulting in bringing the runners down.

This should force the deploy stage to only run if the previous stage is successful.

Why was this MR needed?

What's the best way to test this MR?

A pipeline ran in the main branch should not run deploy if a job fails: https://gitlab.com/gitlab-org/gitlab-runner/-/pipelines/1680943413

image

Also the deploy stage should exist in main:

image

What are the relevant issue numbers?

Edited by Georgi N. Georgiev | GitLab

Merge request reports

Loading