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-12-12 05:58:39 +01:00
|
|
|
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
|
2019-12-12 05:58:39 +01:00
|
|
|
- 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
|
|
|
|
- ./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
|
|
|
|
- docker-copmose -f docker-compose.prod.yml restart front
|
2019-03-05 19:38:19 +01:00
|
|
|
when:
|
|
|
|
event: push
|
|
|
|
branch: master
|