Intégration Drone

- Construction des paquets via le serveur d'intégration continue
- Envoi d'un courriel à la fin de la construction
- Transfert des paquets via SFTP sur le serveur dépôt

Plugins Drone utilisés: https://forge.cadoles.com/wpetit/cadoles-drone-plugins
Playbook Ansible pour le serveur dépôt: https://forge.cadoles.com/wpetit/cadoles-playbooks
This commit is contained in:
wpetit 2017-07-25 09:48:58 +02:00
parent 97247483f9
commit 8bf5a9c4b9
2 changed files with 31 additions and 0 deletions

View File

@ -7,15 +7,45 @@
- npm install - npm install
- npm test - npm test
package-64: package-64:
pull: true
group: package group: package
image: bornholm/drone-tamarin:latest image: bornholm/drone-tamarin:latest
dest_dir: packages dest_dir: packages
volumes: volumes:
- /var/run/docker.sock:/var/run/docker.sock - /var/run/docker.sock:/var/run/docker.sock
package-32: package-32:
pull: true
group: package group: package
image: bornholm/drone-tamarin:latest image: bornholm/drone-tamarin:latest
arch: i386 arch: i386
dest_dir: packages dest_dir: packages
volumes: volumes:
- /var/run/docker.sock:/var/run/docker.sock - /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 ]

1
.gitignore vendored
View File

@ -8,3 +8,4 @@ build
nwjs nwjs
my-profile.json my-profile.json
js-compiled js-compiled
/packages