I got following environment and setup:
- 3 load balanced production servers and
- one development server
- a working auto deployment to my development server with
- one gitlab-runner which connects by ssh to my dev-server and pulls the dev-branch and
- a gitlab-ci.yml which is limited to my dev-branch
How can I achieve:
- further auto-deploy to my development server if I push into my dev-branch
- auto deploy to my 3 production servers if I push into my master-branch
The question is based on my current setup where following questions came up
- can I let a gitlab-runner run just locally (also not in a docker container because I havn't installed one) so that its just up to the gitlab-ci.yml to differ on branches and deploy to the specific servers or
- can I install multiple gitlab-runners which are taking aktion on just specific branches?
or is there another solution which lets me achieve my plans?