liquet/.drone.yml

35 lines
689 B
YAML
Raw Normal View History

2019-05-06 19:51:54 +00:00
kind: pipeline
name: default
steps:
2019-09-27 14:04:24 +00:00
- name: build
2020-01-03 00:55:42 +00:00
image: node:12
2019-09-27 14:04:24 +00:00
pull: always
commands:
- node -v
2020-01-03 00:55:42 +00:00
- yarn
- yarn run build
2019-09-29 16:16:01 +00:00
- name: deploy
image: cupcakearmy/drone-deploy
pull: always
environment:
PLUGIN_KEY:
from_secret: ssh_key
settings:
host: srv-0.nicco.io
user: root
port: 1312
target: /srv/web/blog
sources:
- ./liquet
2020-01-04 15:12:34 +00:00
- ./Dockerfile
- ./docker-compose.prod.yml
- ./uploads.ini
commands:
- docker-compose -f docker-compose.prod.yml down
- docker-compose -f docker-compose.prod.yml up -d
2019-09-29 16:16:01 +00:00
when:
2020-01-04 16:17:24 +00:00
event: tag
2019-09-29 16:16:01 +00:00
branch: master