pitaya-launcher/.drone.yml

52 lines
1.4 KiB
YAML
Raw Normal View History

2017-07-24 15:12:00 +02:00
---
pipeline:
test:
image: node:6-alpine
2017-07-24 15:12:00 +02:00
commands:
- apk add --no-cache firefox-esr
2017-07-24 15:12:00 +02:00
- npm install
- npm test
package-64:
pull: true
group: package
image: bornholm/drone-tamarin:latest
dest_dir: packages
volumes:
- /var/run/docker.sock:/var/run/docker.sock
package-32:
pull: true
group: package
image: bornholm/drone-tamarin:latest
arch: i386
dest_dir: packages
volumes:
- /var/run/docker.sock:/var/run/docker.sock
deploy:
pull: true
image: bornholm/drone-sftp:latest
# Génération des commandes d'upload SFTP via script Bash
sftp_commands_script: |
ls packages/*.deb | xargs -I '{}' echo "put '{}' packages-available/"
secrets:
- source: packages_sftp_host
target: plugin_host
- source: packages_sftp_user
target: plugin_username
- source: packages_sftp_password
target: plugin_password
notify:
image: drillster/drone-email
from: drone@cadoles.com
skip_verify: true
secrets:
- source: cadoles_email_port
target: plugin_port
- source: cadoles_email_host
target: plugin_host
- source: cadoles_email_user
target: plugin_username
- source: cadoles_email_password
target: plugin_password
when:
status: [ success, failure ]