Skip to content

Creating deploy freeze for using a freeze deploy template

Christian Nnachi requested to merge deploy-freeze-update-doc into master

What does this MR do and why?

This merge request introduces a streamlined setup to prevent the execution of deployment jobs during designated freeze periods. This enhancement ensures controlled deployment activities and uninterrupted pipeline flow while critical infrastructure maintenance is underway.

Usage:

To implement this setup, simply incorporate the .freezedeployment template using the extends keyword within your project's .gitlab-ci.yml. For projects where deployment is conditional, use the provided rules and logic to tailor the behavior according to specific needs.

Benefits:

Improved control over deployment activities during critical maintenance. Consistent pipeline continuity and workflow, even during freeze periods. Manual deployment option for careful infrastructure maintenance.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

The provided explanation is quite detailed and covers the necessary steps to prevent deployment jobs in a clear and organized manner. However, for enhanced clarity and conciseness, you might consider breaking down the explanation into smaller, focused sections to make it easier for readers to follow the process. Here's a revised version:

To prevent the execution of deployment jobs across multiple projects within a group, follow these steps:

  1. Define the .freezedeployment job in a shared file for the group.
  2. Utilize the includes keyword to incorporate the template into your project's .gitlab-ci.yml file.
  3. Prevent deployment jobs by creating a rules entry in your .gitlab-ci.yml and using the extends keyword to inherit from .freezedeployment.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Christian Nnachi

Merge request reports

Loading