Difference between revisions of "Github CI/CD"
From Logic Wiki
(Created page with "Category:github Category:CICD In Linux you have to do everything with a user but not root. In order to create a user use '''adduser''' command Like the ''agents''...") |
|||
| Line 2: | Line 2: | ||
[[Category:CICD]] | [[Category:CICD]] | ||
| + | == Preparing Linux == | ||
In Linux you have to do everything with a user but not root. | In Linux you have to do everything with a user but not root. | ||
In order to create a user use '''adduser''' command | In order to create a user use '''adduser''' command | ||
| + | == NGinx setup == | ||
| + | Follow [[Nginx]] | ||
| − | + | == Github Runner == | |
Like the ''agents'' in TFS Github has ''runners'' So we need to install runners to pull github repositories when they are pushed. | Like the ''agents'' in TFS Github has ''runners'' So we need to install runners to pull github repositories when they are pushed. | ||
Revision as of 09:50, 5 April 2022
Preparing Linux
In Linux you have to do everything with a user but not root.
In order to create a user use adduser command
NGinx setup
Follow Nginx
Github Runner
Like the agents in TFS Github has runners So we need to install runners to pull github repositories when they are pushed.
1 - Go to repository
2 - Go to settings
3 - Go to Actions -> Runners
4 - Click New self-hosted runner
5 - Select the operating system
6 - Go to the folder you want to install the runner and pull the codes in your environment
7 - Give full permission
sudo chmod -R 777 /var/www/FrontEnd
8 - Follow the download steps in github
9 - Follow the Configure steps in github
sudo ./svc.sh install sudo ./svc.sh start
see : https://www.youtube.com/watch?v=6-RtA6FlbgQ&list=PL_7mM2_n2qvbtLhKo6Ijqt2cnmCAd2JVi&index=10&t=2348s