add ci
All checks were successful
continuous-integration/drone Build is passing

This commit is contained in:
yaha 2023-01-12 17:16:37 +08:00
parent 465bcb3eeb
commit bea7e15130
2 changed files with 33 additions and 0 deletions

8
.drone.yml Normal file
View File

@ -0,0 +1,8 @@
kind: pipeline
type: exec
name: CodeDebugServ
steps:
- name: build
commands:
- sh deploy.sh

25
deploy.sh Normal file
View File

@ -0,0 +1,25 @@
#!/bin/bash
DEPLOY_PATH="/home/work/apps/frp"
LOG_PATH="${DEPLOY_PATH}/log"
folder_exists() {
if [ -d "$1" ]; then
echo "folder is exists! ${1}"
return 0
fi
echo "create folder ${1}"
mkdir -p ${1}
chown -R work:work ${1}
}
pack_frp() {
cp -rv conf/ ${1}
}
#folder_exists ${DEPLOY_PATH}
#folder_exists ${LOG_PATH}
#pack_frp ${DEPLOY_PATH}
ls
pwd