Go to file
Joseph Le 267efcf356 test 2023-10-03 07:23:20 +00:00
node_modules update service 2023-10-03 04:29:08 +00:00
service test 2023-10-03 07:23:20 +00:00
.gitignore Update .gitignore 2023-10-03 07:19:09 +00:00
Dockerfile giteaHook service 2023-09-25 19:58:46 +10:00
README.md update readme file 2023-09-26 09:16:36 +00:00
docker-compose.yaml giteaHook service 2023-09-25 19:58:46 +10:00
index.js update service 2023-10-03 04:29:08 +00:00
install.sh update service 2023-10-03 04:29:08 +00:00
package-lock.json update service 2023-10-03 04:29:08 +00:00
package.json update service 2023-10-03 04:29:08 +00:00

README.md

gitea_CICD

NodeJS

1) Clone project to your server

  git clone https://gitea.nswteam.net/joseph/gitea_CICD.git

2) Access the folder you just cloned

  • root@root#
        cd <path>/gitea_CICD
    

3) Check the directory path

  • root@root#
        pwd
    
  • output: /gitea_CICD

4) Fill in environment variables

  • root@root#
        nano service/giteaService
    
    • GIT_USERNAME: Username of the git account.
    • GIT_PASSWORD: Password of the git account.
    • PROJECT_PATH: Root path of your project.
    • FE_PROJECT_PATH: Path of the front-end folder.
    • BE_PROJECT_PATH: Path of the back-end folder.
    • FE_ROOT_FOLDER: Path of folder front-end public.

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

  • root@root#
       ./install.sh
    

** 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 ____ **