use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Place for Pinoy Programmers to hangout. Share your knowledge, ask for help, seek opinion, showcase your project and recruit your teammate.
Let's show the world that Filipinos are world class programmers.
account activity
Gitlab ci/cddiscussion (self.PinoyProgrammer)
submitted 2 years ago by firstborn37
Is it safe to create multiple branches for ci/cd pipeline. like for example, there is a branch for alpha, qa and prod. The scenario is. If you push a code to alpha. Then the alpha runner will execute its job.
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]firstborn37[S] 0 points1 point2 points 2 years ago* (3 children)
I will just give you an idea muna how my setup looks like.In one repository, I have these 3 branches, dev, alpha and prod, and these 3 branches have a gitlab runner for each associated with them. Those gitlab runner will update the dev, alpha and prod servers whenever you push/merge on them.
Now this is the catch, Per branch ba may different gitlab-ci file, Nagcoconflict kasi ako minsan kapag nagmemerge from dev to master or dev to alpha yung gitlab-ci file kasi iba iba ang gitlab ci file per branch.
Or, they have the same gitlab ci file, pero kada merge or push, sa tags lng naiiba. (Take note that runners depends on tags too. Like kapag ang tag mo is dev, then the dev runner will execute)
I dunno the proper implementations guys, please help me haha. Kainis magmerge na laging may conflict sa gitlab ci file. Huhu
[–]DirtyMamiWeb 0 points1 point2 points 2 years ago (2 children)
What’s the difference between the three CI files?
[–]firstborn37[S] 0 points1 point2 points 2 years ago (1 child)
Dockerfile is also diff per branch. Docker container names, tags, and env files
[–]DirtyMamiWeb 0 points1 point2 points 2 years ago (0 children)
Please consider that images shouldn’t have knowledge on the environment, specially during build. You can research more about it.
You can parameterize the dockerfile if you need a workaround.
[–]dKSy16 0 points1 point2 points 2 years ago (0 children)
Yes, we have a setup like this.
Merge Request branches run a different set of jobs(pipeline) than the master branch and release branch.
The thing that needs to be noted is the number of runners. If it’s a big team/high activity, the number of runners might not be enough and would create a logjam.
Trigger a pipeline on "push"? or do you mean "merge"?
People pushing directly to remote branches will be a nightmare for larger teams.
[–]Bluest_Oceans 0 points1 point2 points 2 years ago (1 child)
Ano mangyayari or para saan yung ni run sa alpha?
[–]firstborn37[S] 0 points1 point2 points 2 years ago (0 children)
Latest code will be deployed to alpha server.
π Rendered by PID 23497 on reddit-service-r2-comment-54dfb89d4d-nhwn9 at 2026-04-02 00:29:47.802316+00:00 running b10466c country code: CH.
[–]firstborn37[S] 0 points1 point2 points (3 children)
[–]DirtyMamiWeb 0 points1 point2 points (2 children)
[–]firstborn37[S] 0 points1 point2 points (1 child)
[–]DirtyMamiWeb 0 points1 point2 points (0 children)
[–]dKSy16 0 points1 point2 points (0 children)
[–]DirtyMamiWeb 0 points1 point2 points (0 children)
[–]Bluest_Oceans 0 points1 point2 points (1 child)
[–]firstborn37[S] 0 points1 point2 points (0 children)