mnist/.drone.yml

30 lines
558 B
YAML
Raw Normal View History

2020-01-18 10:56:56 +00:00
kind: pipeline
name: default
steps:
- name: build
image: node:alpine
pull: always
commands:
- node -v
- yarn
- yarn run build
- name: deploy
image: cupcakearmy/drone-deploy
pull: always
settings:
host: nicco.io
user: root
key:
from_secret: ssh_key
port: 1312
target: /srv/web/mnist
sources:
- ./dist
- ./docker-compose.prod.yml
commands:
- docker-compose -f docker-compose.prod.yml up -d
when:
event: push
branch: master