This repository has been archived on 2024-04-03. You can view files and clone it, but cannot push or open issues or pull requests.
vault/.drone.yml
Kazhnuz 9abd0ef41f
All checks were successful
continuous-integration/drone Build is passing
meta: add deployment with drone
2022-04-03 12:42:17 +02:00

33 lines
560 B
YAML

kind: pipeline
name: production
when:
event: [ push ]
branch: [ main ]
clone:
git:
image: plugins/git
pull: true
steps:
- name: build
image: node:latest
commands:
- npm install -g gulp
- npm i
- npm run build
- name: deploy
image: drillster/drone-rsync
settings:
hosts:
from_secret: deploy_host
target: /var/www/vault.kobold.city
source: dist/*
user:
from_secret: deploy_user
key:
from_secret: deploy_key
when:
branch: main
delete: true