[feat] add ci
parent
5cce9766c4
commit
b80c03cecb
|
@ -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
|
|
@ -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."
|
Loading…
Reference in New Issue