iswision-web/.drone.yml

36 lines
694 B
YAML
Raw Permalink 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: garionion/drone-sftp
2021-05-17 18:35:13 +02:00
volumes:
- name: dist
path: /dist
2021-05-17 18:20:36 +02:00
environment:
2021-05-17 19:15:18 +02:00
SSH_KEY:
from_secret: ssh-key
USERNAME:
2021-05-17 18:20:36 +02:00
from_secret: username
2021-05-17 19:15:18 +02:00
KNOWN_HOSTS:
from_secret: known-hosts
HOSTNAME: web-1.fem.tu-ilmenau.de
DEST_DIR: '/iswision.de/www/public_html/iswision2021/'
SRC_DIR: '/dist/*'
commands:
- /bin/sftp-wrap.sh
2021-05-17 18:20:36 +02:00
when:
branch:
- main
2021-05-17 19:15:18 +02:00
2021-05-17 18:20:36 +02:00
volumes:
2021-05-17 18:35:13 +02:00
- name: dist
2021-05-17 18:20:36 +02:00
temp: {}