How can I efficiently implement a change in GitLab CI for all branches?

0
7
Asked By MysteriousPenguin42 On

I'm working on a project where we use a similar gitlab-ci.yml file across multiple projects, but I need to make a change that affects almost all branches. Merging or rebasing would take too much time, and while I've thought about creating a diff file to apply to each branch, that seems like an inefficient process too. Does anyone have suggestions on how to handle this more effectively?

1 Answer

Answered By CuriousCoder99 On

You might want to consider creating a repository with template files that you can reference in your projects. This doesn’t eliminate the need to update each branch, but it does mean you only have to do it once per template. It's a good way to manage tech debt too!

MysteriousPenguin42 -

We actually have some jobs set up through templates, but unfortunately, this particular change isn't one of them. Thanks for the suggestion!

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.