mirror of
https://github.com/cupcakearmy/fantus.git
synced 2024-11-01 04:54:13 +01:00
42 lines
834 B
YAML
42 lines
834 B
YAML
kind: pipeline
|
|
name: default
|
|
|
|
steps:
|
|
# - name: build
|
|
# image: node:alpine
|
|
# pull: always
|
|
# commands:
|
|
# - node -v
|
|
# - yarn -v
|
|
# - yarn
|
|
# - yarn run build
|
|
|
|
- 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:
|
|
- ./Dockerfile
|
|
- ./docker-compose.prod.yml
|
|
- ./yarn.lock
|
|
- ./package.json
|
|
- ./tsconfig.json
|
|
- ./next.config.js
|
|
- ./components
|
|
- ./pages
|
|
- ./public
|
|
- ./screens
|
|
- ./styles
|
|
commands:
|
|
- docker-compose -f docker-compose.prod.yml up -d --build
|
|
when:
|
|
event: push
|
|
branch: master
|