|
|
|
@ -72,3 +72,62 @@ trigger:
|
|
|
|
|
event:
|
|
|
|
|
- push
|
|
|
|
|
- merge
|
|
|
|
|
---
|
|
|
|
|
kind: pipeline
|
|
|
|
|
type: docker
|
|
|
|
|
name: prod
|
|
|
|
|
steps:
|
|
|
|
|
- name: restore-cache
|
|
|
|
|
image: meltwater/drone-cache
|
|
|
|
|
settings:
|
|
|
|
|
backend: filesystem
|
|
|
|
|
restore: true
|
|
|
|
|
cache_key: node_modules-taskvue
|
|
|
|
|
archive_format: gzip
|
|
|
|
|
filesystem_cache_root: "/var/lib/cache"
|
|
|
|
|
mount:
|
|
|
|
|
- node_modules
|
|
|
|
|
volumes:
|
|
|
|
|
- name: cache
|
|
|
|
|
path: "/var/lib/cache"
|
|
|
|
|
# Do stuff..
|
|
|
|
|
- name: install
|
|
|
|
|
image: node:14
|
|
|
|
|
commands:
|
|
|
|
|
- yarn install
|
|
|
|
|
- name: rebuild-cache
|
|
|
|
|
image: meltwater/drone-cache
|
|
|
|
|
settings:
|
|
|
|
|
backend: filesystem
|
|
|
|
|
rebuild: true
|
|
|
|
|
cache_key: node_modules-taskvue
|
|
|
|
|
archive_format: gzip
|
|
|
|
|
filesystem_cache_root: "/var/lib/cache"
|
|
|
|
|
mount:
|
|
|
|
|
- 'node_modules'
|
|
|
|
|
volumes:
|
|
|
|
|
- name: cache
|
|
|
|
|
path: "/var/lib/cache"
|
|
|
|
|
# Do stuff..
|
|
|
|
|
- name: build
|
|
|
|
|
image: node:14
|
|
|
|
|
commands:
|
|
|
|
|
- yarn run build
|
|
|
|
|
|
|
|
|
|
- name: cp ftp
|
|
|
|
|
image: cschlosser/drone-ftps
|
|
|
|
|
hostname: example.com:21
|
|
|
|
|
secrets: [ ftp_username, ftp_password ]
|
|
|
|
|
secure: true
|
|
|
|
|
dest_dir: /v6
|
|
|
|
|
src_dir: /dist
|
|
|
|
|
volumes:
|
|
|
|
|
- name: cache
|
|
|
|
|
host:
|
|
|
|
|
path: "/tmp/cache"
|
|
|
|
|
trigger:
|
|
|
|
|
branch:
|
|
|
|
|
- prod
|
|
|
|
|
event:
|
|
|
|
|
- push
|
|
|
|
|
- merge
|
|
|
|
|