-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathwercker.yml
27 lines (27 loc) · 987 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
box: wercker/ruby
no-response-timeout: 10
build:
steps:
- bundle-install
- install-packages:
packages: wget unzip
- script:
name: install gems
code: bundle install
- script:
name: install packer
code: |
wget https://dl.bintray.com/mitchellh/packer/packer_0.7.5_linux_amd64.zip
unzip packer_0.7.5_linux_amd64.zip
./packer version | tee $WERCKER_REPORT_MESSAGE_FILE
- script:
name: validate packer template
code: ./packer validate -only=amazon-ebs template.json | tee $WERCKER_REPORT_MESSAGE_FILE
- script:
name: build image
code: |
./packer build -only=amazon-ebs 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:
- wantedly/pretty-slack-notify:
webhook_url: $SLACK_WEBHOOK_URL