Added drone pipeline
continuous-integration/drone/push Build was killed
Details
continuous-integration/drone/push Build was killed
Details
This commit is contained in:
parent
7e603c9afa
commit
555d5ec8bc
|
@ -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 ]
|
Loading…
Reference in New Issue