Is it possible in gitlab-ci build another branch to another directory?

Viewed 10036

I want to use one gitlab-runner to make two similar, but not exact same builds.

In the git repository, I have several branches: prod, test, dev. Is it possible to use only one runner to build on different paths?

For example:

  • /home/gitlab-runner/builds/860ee11a/0/projectname - prod
  • /home/gitlab-runner/builds/860ee11a/1/projectname - test
  • /home/gitlab-runner/builds/860ee11a/2/projectname - dev

If so, how do you do that?

2 Answers
Related