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.
univers/.drone.yml

34 lines
562 B
YAML
Raw Normal View History

2022-03-26 17:09:16 +01:00
kind: pipeline
name: production
when:
event: [ push ]
2022-03-26 17:32:52 +01:00
branch: [ main ]
2022-03-26 17:09:16 +01:00
clone:
git:
image: plugins/git
pull: true
steps:
- name: build
image: node:latest
commands:
- npm install -g gulp
- npm i
2022-03-26 17:11:10 +01:00
- npm run build
2022-03-26 17:09:16 +01:00
- name: deploy
image: drillster/drone-rsync
settings:
hosts:
from_secret: deploy_host
target: /var/www/univers.kobold.city
source: dist/*
user:
from_secret: deploy_user
key:
from_secret: deploy_key
when:
2022-03-26 17:32:52 +01:00
branch: main
2022-03-26 17:09:16 +01:00
delete: true