Gitlab CI runner
13,501
Assuming you have a shell runner, you can create a job and list the command line commands you want to have executed. Create a file .gitlab-ci.yml
in the root directory of your git repository:
my_project:
script:
- cd apps/my_project
- mkdir build
- cd build
- cmake ..
- make
When you push, and ci runners are enabled on gitlab, it will automatically execute all these shell commands for each push.
More information about the things you can put into .gitlab-ci.yml
can be found here.
Author by
Admin
Updated on June 04, 2022Comments
-
Admin almost 2 years
I have used this tutorial for setting up a gitlab ci runner. The runner seems to be working. Now I want to build a C++ project with it.
How can I do this?