[feat] add ci

master
developer 2021-01-19 22:12:06 +08:00
parent 5cce9766c4
commit b80c03cecb
2 changed files with 18 additions and 0 deletions

12
.drone.yml 100644
View File

@ -0,0 +1,12 @@
clone:
git:
image: plugins/git
tags: true
pipeline:
build:
image: docker.finogeeks.club/build/ubuntu-scp
pull: true
commands:
- bash trigger.sh
when:
event: tag

6
trigger.sh 100644
View File

@ -0,0 +1,6 @@
#!/bin/bash
set -e
#curl -X POST -H 'Content-Type: application/json' -H 'X-Gogs-Delivery:f29ac647-829a-4977-85b5-e4be037ec877' -H 'X-Gogs-Event:push' -d '{"secret": 123321}' http://218.17.115.160:9000/gogs-webhook/?job=FinChatSDK
curl --max-time 5 --connect-timeout 1 -X POST -H 'Content-Type: application/json' -H 'X-Gogs-Delivery:f29ac647-829a-4977-85b5-e4be037ec877' -H 'X-Gogs-Event:push' -d '{"secret": abcd@@1234}' https://jenkins.finogeeks.club/view/FinApplet/job/mop-flutter-sdk
echo "trigger success."