forked from dokku-alt/dokku-alt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.drone.yml
37 lines (34 loc) · 964 Bytes
/
.drone.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
image: ayufan/dokku-alt-base:latest
script:
- "sed -i 's/linux-image-extra-virtual, //g' deb/dokku-alt/DEBIAN/control"
- make install
- tests/run_localhost
deploy:
bash:
script:
- apt-get install -y dpkg-sig
- git checkout .
- git remote add deploy git@github.com:dokku-alt/dokku-alt.git
- git fetch deploy gh-pages:gh-pages
- git config user.email "drone@ayufan.eu"
- git config user.name "Drone"
- 'echo "$GPG_KEY" | base64 -d | gpg --allow-secret-key-import --import -'
- '[[ "$CI_BRANCH" == "master" ]] && make dpkg_beta'
- '[[ "$CI_BRANCH" == "stable" ]] && make dpkg_stable'
- git push deploy gh-pages
condition:
owner: dokku-alt
branch: '[ms][at][sa][tb][el][re]'
notify:
email:
recipients:
- ayufan@ayufan.eu
on_failure: "true"
webhook:
urls:
- $$GITTER_SERVICE
on_success: true
on_failure: true
slack:
webhook_url: $$SLACK_SERVICE
on_failure: true