iswision-web/.drone.yml

31 lines
630 B
YAML
Raw Normal View History

2021-05-17 18:20:36 +02:00
kind: pipeline
name: default
type: docker
steps:
- name: build
image: node
2021-05-17 18:35:13 +02:00
volumes:
- name: dist
path: /dist
2021-05-17 18:20:36 +02:00
commands:
- npm install
- npm run generate
- name: deploy
image: cschlosser/drone-ftps
2021-05-17 18:35:13 +02:00
volumes:
- name: dist
path: /dist
2021-05-17 18:20:36 +02:00
environment:
FTP_USERNAME:
from_secret: username
FTP_PASSWORD:
from_secret: password
PLUGIN_HOSTNAME: web-1.fem.tu-ilmenau.de:21
2021-05-17 18:35:13 +02:00
PLUGIN_SRC_DIR: /dist/
2021-05-17 18:20:36 +02:00
PLUGIN_DEST_DIR: /iswision.de/www/public_html/iswision2021
when:
branch:
- main
volumes:
2021-05-17 18:35:13 +02:00
- name: dist
2021-05-17 18:20:36 +02:00
temp: {}