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-08-30 20:31:18 +02:00
|
|
|
image: cupcakearmy/pnpm
|
2019-03-05 19:38:19 +01:00
|
|
|
pull: always
|
2019-03-03 16:27:15 +01:00
|
|
|
commands:
|
|
|
|
- node -v
|
2019-08-30 20:31:18 +02:00
|
|
|
- pnpm --shamefully-flatten i
|
|
|
|
- pnpm run build:prod
|
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:
|
|
|
|
- ./public
|
|
|
|
- ./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
|