Added drone pipeline
continuous-integration/drone/push Build was killed Details

This commit is contained in:
Jim Martens 2021-10-06 12:11:25 +02:00
parent 7e603c9afa
commit 555d5ec8bc
1 changed files with 50 additions and 0 deletions

50
.drone.yml Normal file
View File

@ -0,0 +1,50 @@
---
kind: pipeline
type: docker
name: default
clone:
skip_verify: true
steps:
- name: setup
image: node:14-alpine
commands:
- npm install
- name: build
image: node:14-alpine
commands:
- ng build
- name: deploy
image: drillster/drone-rsync
settings:
hosts: ["howell.uberspace.de"]
user: jimmain7
source: /drone/src/dist/speech-statistics/.
target: ~/tmp/build
recursive: true
delete: true
port: 22
key:
from_secret: rsync_key
script:
- shopt -s dotglob
- rm -rf tmp/old.build
- mkdir tmp/old.build
- rm -rf html/speech-statistics
- cp -r tmp/build/* html/
- rm -rf tmp/build
- name: notify
image: drillster/drone-email
environment:
EMAIL_USERNAME:
from_secret: email_username
EMAIL_PASSWORD:
from_secret: email_password
settings:
host: howell.uberspace.de
port: 587
from: Drone <drone@2martens.de>
secrets: [email_username, email_password]
when:
status: [ failure ]