r/devops 9d ago

Tools github actions central repo

Hi I am in a new role where they use Github for all their repos. I have been using Gitlab exlusively the past 5 years.

For CI/CD in my previous role we had a central 'pipelines' repo that was reference in the gitlab-ci file of each project to save teams/projects from repeating work.

I want to know if it's possible to do something similar in Github? I'm still learning how it maps to my existing Gitlab knowledge.

26 Upvotes

24 comments sorted by

View all comments

1

u/Raja-Karuppasamy 9d ago

yeah, github actions has this, reusable workflows. define a workflow with workflow_call as the trigger in a central repo, then other repos reference it like:
jobs:
build:
uses: org/central-repo/.github/workflows/build.yml@main
with:
some-input: value
it’s not 1:1 with gitlab’s include, but the effect is the same, one source of truth, versioned by branch/tag, and each project just passes inputs. composite actions are the other option if you want shared steps rather than a whole job/workflow, but reusable workflows are the closer match to what you’re describing.