old.nicco.io/.drone.yml

34 lines
736 B
YAML
Raw Normal View History

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-24 10:32:22 +02:00
image: cupcakearmy/yarn
2019-03-05 19:38:19 +01:00
pull: always
2019-03-03 16:27:15 +01:00
commands:
- node -v
2019-08-24 10:32:22 +02:00
- yarn
- yarn 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