forked from rtCamp/docs.rtcamp.com
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwercker.yml
35 lines (30 loc) · 1010 Bytes
/
wercker.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
35
# our build should run within a Ruby box
box: wercker/ruby
build:
steps:
# Run a smart version of bundle install
# which improves build execution time of
# future builds
- bundle-install
# A custom script step
# that actually builds the jekyll site
- script:
name: generate site
code: bundle exec jekyll build
deploy:
steps:
- install-packages:
packages: sshpass #needed by cdn77
- script:
name: deploy to cdn
code: rsync -avz --progress --rsh="sshpass -p $SSHPASS ssh -l $SSHUSER -o StrictHostKeyChecking=no" _site/* $SSHUSER@$SSHHOST:/www/
after-steps:
- script:
name: purge cdn
code: curl --data "cdn_id=$CDNID&login=$APIUSER&passwd=$APIPASS" https://client.cdn77.com/api/v2.0/data/purge-all
- sherzberg/slack-notify:
subdomain: rtcamp
token: $SLACKTOKEN
channel: "#docs"
username: wercker
icon_url: https://avatars3.githubusercontent.com/u/1695193?s=140