old.nicco.io/.drone.yml

37 lines
765 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
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
- 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:
2020-01-05 17:34:03 +01:00
- ./Dockerfile
2020-01-05 17:48:14 +01:00
- ./docker-compose.prod.yml
2020-01-05 17:34:03 +01:00
- ./package.json
- ./yarn.lock
- ./next.config.js
- ./.next
- ./public
2020-01-05 17:37:01 +01:00
commands:
- docker-compose -f docker-compose.prod.yml build
2020-01-05 17:52:47 +01:00
- docker-compose -f docker-compose.prod.yml up -d
2019-03-05 19:38:19 +01:00
when:
event: push
branch: master