2019-03-03 16:51:45 +01:00
|
|
|
kind: pipeline
|
|
|
|
name: default
|
2019-03-03 16:27:15 +01:00
|
|
|
|
2019-03-03 16:51:45 +01:00
|
|
|
steps:
|
2019-03-05 19:37:24 +01:00
|
|
|
- name: build
|
2019-12-12 05:58:39 +01:00
|
|
|
image: node:12-alpine
|
2019-03-05 19:38:19 +01:00
|
|
|
pull: always
|
2019-03-03 16:27:15 +01:00
|
|
|
commands:
|
|
|
|
- node -v
|
2019-12-12 05:58:39 +01:00
|
|
|
- yarn
|
|
|
|
- yarn run build
|
2019-03-04 16:32:34 +01:00
|
|
|
|
2019-03-05 19:37:24 +01:00
|
|
|
- name: deploy
|
2019-03-05 19:38:19 +01:00
|
|
|
image: cupcakearmy/drone-deploy
|
|
|
|
pull: always
|
|
|
|
environment:
|
|
|
|
PLUGIN_KEY:
|
|
|
|
from_secret: ssh_key
|
|
|
|
settings:
|
2019-08-23 00:38:35 +02:00
|
|
|
host: srv-0.nicco.io
|
2019-03-05 19:38:19 +01:00
|
|
|
user: root
|
|
|
|
port: 1312
|
|
|
|
target: /srv/web/home
|
|
|
|
sources:
|
2019-12-12 05:58:39 +01:00
|
|
|
- ./dist
|
2019-03-05 19:38:19 +01:00
|
|
|
- ./docker-compose.prod.yml
|
2019-03-24 02:32:01 +01:00
|
|
|
- ./nginx.conf
|
2019-03-05 19:38:19 +01:00
|
|
|
commands:
|
2019-08-10 22:54:33 +02:00
|
|
|
- docker-compose -f docker-compose.prod.yml pull
|
2019-03-24 01:24:27 +01:00
|
|
|
- docker-compose -f docker-compose.prod.yml down
|
|
|
|
- docker-compose -f docker-compose.prod.yml up -d
|
2019-03-05 19:38:19 +01:00
|
|
|
when:
|
|
|
|
event: push
|
|
|
|
branch: master
|