gitea_CICD/README.md

1.4 KiB

gitea_CICD

NodeJS

1) Clone project to your server

  git clone https://<USERNAME>:<PASSWORD>@gitea.nswteam.net/joseph/gitea_CICD.git
  • Get username:
getUsername

2) Access the folder you just cloned

root@root#

    cd gitea_CICD

3) Check the directory path

root@root#

    pwd
  • output: /gitea_CICD

4) Create folder service_run

root@root#

    mkdir service_run

Copy environment file

    cp service/giteaService.conf service_run/giteaService.conf

5) Fill in environment variables (*)

root@root#

    nano service_run/giteaService.conf

6) Run file "install.sh" to install service

root@root#

    ./install.sh
install server

** Note: **

  • Project gitea_CICD should be placed at the same folder level as your project

        ├── your_project
        └── gitea_CICD project
    
  • Depending on the technology your project uses, the "gitea_CICD/service/giteaHook.sh" file will be custom configured to match the technology.

**____ Joseph Le____ **