Merge pull request 'prod' (#3) from prod into master

Reviewed-on: SWS/carInsightSystem#3
prod
杨赟 3 years ago
commit 1bf40556c4

@ -72,3 +72,67 @@ 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
environment:
PLUGIN_HOSTNAME: 123.56.203.112:21
FTP_USERNAME:
from_secret: ftp_username
FTP_PASSWORD:
from_secret: ftp_password
PLUGIN_SECURE: false
PLUGIN_CHMOD: false
PLUGIN_DEST_DIR: /v6
PLUGIN_SRC_DIR: /dist
volumes:
- name: cache
host:
path: "/tmp/cache"
trigger:
branch:
- prod
event:
- push
- merge

Loading…
Cancel
Save