-
Notifications
You must be signed in to change notification settings - Fork 0
/
wercker.yml
40 lines (36 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
36
37
38
39
40
box: wercker/ruby
build:
steps:
# Install dependencies
- bundle-install
# Execute jeykyll doctor command to validate the
# site against a list of known issues.
- script:
name: jekyll doctor
code: bundle exec jekyll doctor
# Build some html
- script:
name: generate production site
code: |-
bundle exec jekyll build --trace
# Copy to the output folder
- script:
name: copy output
code: |-
rsync -avz "$WERCKER_SOURCE_DIR/" "$WERCKER_OUTPUT_DIR"
deploy:
steps:
- mktemp:
envvar: PRIVATEKEY_PATH
- create-file:
name: write key
filename: $PRIVATEKEY_PATH
content: $SSH_PRIVATE
overwrite: true
hide-from-log: true
- script:
name: transfer files
code: |
pwd
ls -la
rsync -avz --delete --rsh="ssh -i $PRIVATEKEY_PATH -o StrictHostKeyChecking=no -o UserKnownHostsFile=no" _site/ opennebraska-deploy@willow.prefork.net:site/