forked from cj123/canijailbreak.com
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.drone.yml
34 lines (31 loc) · 833 Bytes
/
.drone.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
workspace:
base: /go
path: src/github.com/cj123/canijailbreak.com
pipeline:
build:
image: golang:1.9
commands:
- go build -o jailbreak-generate .
- ./jailbreak-generate -i ./jailbreaks.json -o ./static
- cd static
- tar czf ../canijailbreak.com.tar.gz *
deploy:
secrets: [ plugin_key, DEPLOY_HOSTS, DEPLOY_TARGET, DEPLOY_USER ]
image: drillster/drone-rsync
source: ./canijailbreak.com.tar.gz
user: $DEPLOY_USER
delete: false
recursive: true
hosts: [ $DEPLOY_HOSTS ]
target: /var/www/canijailbreak.com
script:
- cd /var/www/canijailbreak.com
- bash do-release.sh
when:
branch: master
cloudflare:
image: seejy/drone-cloudflare
secrets: [ CLOUDFLARE_EMAIL, CLOUDFLARE_APIKEY ]
domain: canijailbreak.com
when:
branch: master