-
Notifications
You must be signed in to change notification settings - Fork 0
/
wercker.yml
30 lines (30 loc) · 1.03 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
box: wercker/ruby
build:
steps:
- bundle-install
- install-packages:
packages: wget unzip
- script:
name: install puppet modules
code: bundle exec librarian-puppet install
- script:
name: install packer
code: |
wget https://dl.bintray.com/mitchellh/packer/0.5.2_linux_amd64.zip
unzip 0.5.2_linux_amd64.zip
./packer version | tee $WERCKER_REPORT_MESSAGE_FILE
- script:
name: validate packer template
code: ./packer validate template.json | tee $WERCKER_REPORT_MESSAGE_FILE
- script:
name: build image
code: |
./packer build template.json | tee "${WERCKER_REPORT_ARTIFACTS_DIR}/packer_build_output.log"
tail -n 1 "${WERCKER_REPORT_ARTIFACTS_DIR}/packer_build_output.log" | tee $WERCKER_REPORT_MESSAGE_FILE
after-steps:
- wouter/email-notify:
from: [email protected]
username: $SMTP_USER
password: $SMTP_PASSWORD
host: $SMTP_HOST