CI/CD Function to update a git repository

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

Release notes

Problem to solve

As a Platform Engineer, I want to provide an easy to use CI snippet for my users to update their git repositories from CI, so they - combined with other snippets - can self-serve complex CI jobs.

Example use case: On a tagged build, various files need to be updated (e.g. changelog or Kubernetes manifests). The tagged CI pipeline should do the update.

Proposal

A CI/CD components with the following features:

  • check out the repository
  • scripts runs the scripts to update the repository
  • finally the components runs a git commit and git push
  • the commit message is an input variable
  • optionally the commit&push can target a new branch
  • optionally the component can open MR for the new branch

Intended users

Feature Usage Metrics

  • monthly count of pipelines running the component
  • monthly count of projects running a pipeline with the component

Does this feature require an audit event?

No

Edited by 🤖 GitLab Bot 🤖