liquet/.drone.yml

35 lines
689 B
YAML
Raw Normal View History

2019-05-06 21:51:54 +02:00
kind: pipeline
name: default
steps:
2019-09-27 16:04:24 +02:00
- name: build
2020-01-03 01:55:42 +01:00
image: node:12
2019-09-27 16:04:24 +02:00
pull: always
commands:
- node -v
2020-01-03 01:55:42 +01:00
- yarn
- yarn run build
2019-09-29 18:16:01 +02: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 16:12:34 +01: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 18:16:01 +02:00
when:
2020-01-04 17:17:24 +01:00
event: tag
2019-09-29 18:16:01 +02:00
branch: master