-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathwercker.yml
45 lines (42 loc) · 1.46 KB
/
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
36
37
38
39
40
41
42
43
44
# This references the default Ruby container from
# the Docker Hub.
# https://registry.hub.docker.com/_/ruby/
# If you want to use a specific version you would use a tag:
# ruby:2.2.2
box: ruby:2.3.3
# You can also use services such as databases. Read more on our dev center:
# http://devcenter.wercker.com/docs/services/index.html
# services:
# - postgres
# http://devcenter.wercker.com/docs/services/postgresql.html
# - mongo
# http://devcenter.wercker.com/docs/services/mongodb.html
# This is the build pipeline. Pipelines are the core of wercker
# Read more about pipelines on our dev center
# http://devcenter.wercker.com/docs/pipelines/index.html
build:
# Steps make up the actions in your pipeline
# Read more about steps on our dev center:
# http://devcenter.wercker.com/docs/steps/index.html
steps:
- bundle-install
- script:
name: checkout source branch
code: if [ -d _posts ]; then git checkout source; fi;
- script:
name: generate site
code: if [ -d _posts ]; then bundle exec jekyll build --trace; fi;
deploy:
steps:
- bundle-install
- williamli/add-deploy-ssh-key:
keyname: GITHUB
- script:
name: set git config email
code: git config --global user.email "calebawoods@gmail.com"
- script:
name: set git config name
code: git config --global user.name "Caleb Woods"
- script:
name: publish rake task
code: bundle exec rake publish