-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwercker.yml
33 lines (33 loc) · 1.38 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
box: darron/ubuntu14.04@1.0.2
no-response-timeout: 10
build:
steps:
- script:
name: prepare the required items.
code: |
sudo apt-get update
sudo apt-get install -y libssl-dev unzip curl && sudo gem install fpm-cookery --no-ri --no-rdoc
sudo curl https://packagecloud.io/install/repositories/darron/consul/script.deb.sh | sudo bash
- script:
name: get the source and build
code: |
git clone https://github.com/darron/consul-webui-build.git
cd fpm-recipes/consul-webui
sudo fpm-cook install-deps
sudo fpm-cook
after-steps:
- wantedly/pretty-slack-notify:
webhook_url: $SLACK_WEBHOOK_URL
deploy:
steps:
- script:
name: push to packagecloud
code: |
sudo gem install package_cloud --no-ri --no-rdoc
PACKAGECLOUD=$(eval echo "\$PACKAGECLOUD_TOKEN") && echo -e "$PACKAGECLOUD" > ~/.packagecloud && chmod 600 ~/.packagecloud
DEB_FILE=$(find . -name '*.deb') && package_cloud push darron/consul-webui/ubuntu/trusty $DEB_FILE
DEB_FILE=$(find . -name '*.deb') && package_cloud push darron/consul-webui/ubuntu/precise $DEB_FILE
DEB_FILE=$(find . -name '*.deb') && package_cloud push darron/octohost/ubuntu/trusty $DEB_FILE
after-steps:
- wantedly/pretty-slack-notify:
webhook_url: $SLACK_WEBHOOK_URL