fantus/.drone.yml

42 lines
834 B
YAML
Raw Normal View History

2020-01-12 19:29:34 +01:00
kind: pipeline
name: default
steps:
2020-01-16 00:51:23 +01:00
# - name: build
# image: node:alpine
# pull: always
# commands:
# - node -v
# - yarn -v
# - yarn
# - yarn run build
2020-01-12 19:29:34 +01:00
- name: deploy
image: cupcakearmy/drone-deploy
pull: always
environment:
PLUGIN_KEY:
from_secret: ssh_key
settings:
host: fantus.studio
user: root
port: 1312
target: /srv/web/fantus
sources:
2020-01-13 09:25:59 +01:00
- ./Dockerfile
2020-01-12 19:29:34 +01:00
- ./docker-compose.prod.yml
2020-01-13 09:29:13 +01:00
- ./yarn.lock
2020-01-12 19:29:34 +01:00
- ./package.json
2020-01-16 00:51:23 +01:00
- ./tsconfig.json
2020-01-12 19:29:34 +01:00
- ./next.config.js
2020-01-16 00:51:23 +01:00
- ./components
- ./pages
- ./public
- ./screens
- ./styles
2020-01-12 19:29:34 +01:00
commands:
- docker-compose -f docker-compose.prod.yml up -d --build
when:
event: push
branch: master