51 lines
1.5 KiB
Plaintext
Executable File
51 lines
1.5 KiB
Plaintext
Executable File
# Warning: (*) are required variables to be declared
|
|
|
|
# The variable is automatically filled in by the system
|
|
HOOK_PATH=/home/gitea_CICD
|
|
NODE_BIN=/path/to/node
|
|
NPM_BIN=/path/to/npm
|
|
# Git account (*)
|
|
GIT_USERNAME=<your_username>
|
|
GIT_PASSWORD=<your_password>
|
|
GIT_REPOSITORY=<your_repository>
|
|
# Example: https://gitea.nswteam.net/username/repo_name.git
|
|
GIT_BRANCH=<your_branch>
|
|
|
|
# Port of server (*)
|
|
PORT_SERVICE=5000
|
|
|
|
# Email: Used to send notifications when the repository has updates (*)
|
|
# Enable/Disable send mail: True or False (*)
|
|
SEND_EMAIL=False
|
|
RECEIVE_EMAIL_ADDRESS=<youremail>
|
|
EMAIL_FROM=
|
|
EMAIL_HOST=
|
|
EMAIL_PORT=
|
|
EMAIL_SECURE=True
|
|
EMAIL_USER=
|
|
EMAIL_PASSWORD=
|
|
# URL of project directory (*)
|
|
# Example: /home/My_project/
|
|
PROJECT_PATH=</project/directory/path>
|
|
|
|
#
|
|
# It is possible to add many other directory besides the front-end directory
|
|
#
|
|
# Syntax:
|
|
# URL : <name>_PROCESS_PATH=</your/directory/path/>
|
|
# Execution command: <name>_PROCESS_PATH_COMMAND=<command1> && <command2> ...
|
|
#
|
|
|
|
# Example:
|
|
# URL of FE directory(*)
|
|
#FE_PROCESS_PATH=/home/My_project/FE_directory
|
|
#FE_PROCESS_PATH_COMMAND=npm install -f && npm run build && cp -rf /home/My_project/FE_directory/build/* /var/www/html
|
|
|
|
# URL of back-end directory(*)
|
|
#BE_PROCESS_PATH=/home/My_project/BE_directory
|
|
#BE_PROCESS_PATH_COMMAND=npm install && echo "\n" && echo "BACK_END"
|
|
|
|
# URL of other directory(*)
|
|
#OTHER_PROCESS_PATH=/home/My_project/Other_directory
|
|
#OTHER_PROCESS_PATH_PROCESS_PATH_COMMAND= command 1 && command 2
|