pitaya-launcher/.drone.yml

52 rindas
1.4 KiB
YAML

---
pipeline:
test:
image: node:6-alpine
commands:
- apk add --no-cache firefox-esr
- 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 ]