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:
parent
97247483f9
commit
8bf5a9c4b9
30
.drone.yml
30
.drone.yml
@ -7,15 +7,45 @@
|
||||
- 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 ]
|
||||
|
1
.gitignore
vendored
1
.gitignore
vendored
@ -8,3 +8,4 @@ build
|
||||
nwjs
|
||||
my-profile.json
|
||||
js-compiled
|
||||
/packages
|
||||
|
Loading…
Reference in New Issue
Block a user