Thursday, 15 June 2023

GIT-LAB VS GIT hub, GIT-LAB runners setup, running jobs

 Git-lab is open source currently hosted on google cloud.

CI (contoinously integration)

CD (continously development)

Git lab - runner is a continously running instance on a server, can be on the same server as git-lab is hosted or differet :

https://jfreeman.dev/blog/2019/03/22/understanding-gitlab-runner/

to install :

https://docs.gitlab.com/runner/install/linux-manually.html

After installation, you will need to make runner to connect to your project repo, and specify which tagged jobs it can run. Tag in jobs is different than tags in branches : 


https://www.tutorialspoint.com/gitlab/gitlab_installation.htm

https://www.tutorialspoint.com/gitlab/gitlab_ci_configuring_gitlab_runners.htm#:~:text=GitLab%20runner%20is%20a%20build,or%20specific%20after%20installing%20it.


To create a job for runner to pick up, 

you need to create a YAML file named .gitlab-ci.yml and commit to main-master branch. you also view pipeline to see jobs running

https://stackoverflow.com/questions/43638979/understanding-gitlab-ci-tags

https://docs.gitlab.com/ee/ci/quick_start/



No comments:

Post a Comment