1 Star 0 Fork 32

巫妖王/tduck-report-front

forked from TDUCK/tduck-report-front 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.drone.yml 1.51 KB
一键复制 编辑 原始数据 按行查看 历史
wang 提交于 2024-01-21 12:28 +08:00 . 初始化提交
kind: pipeline
type: docker
name: tduck-report
steps:
- name: restore-cache
pull: if-not-exists
image: drillster/drone-volume-cache
volumes:
- name: cache
path: /cache
settings:
restore: true
mount:
- ./node_modules
- name: build-front
pull: if-not-exists
image: node:16
settings:
mirror: https://docker.mirrors.ustc.edu.cn
commands:
- npm install -g pnpm
- pnpm install
- pnpm run build
- node -v
- ls
- name: rebuild-cache
pull: if-not-exists
image: drillster/drone-volume-cache
volumes:
- name: cache
path: /cache
settings:
rebuild: true
mount:
- ./node_modules
- name: publish-dev
image: appleboy/drone-scp
settings:
host:
from_secret: server1_host
username:
from_secret: server1_username
password:
from_secret: server1_password
port: 22
strip_components: 1
target: /usr/share/nginx/html/tduckpro
source: ./dist/*
when:
branch:
- develop
- name: publish-demo
image: appleboy/drone-scp
settings:
host:
from_secret: server3_host
username:
from_secret: server1_username
password:
from_secret: server1_password
port: 22
strip_components: 1
target: /usr/share/nginx/html/tduckreport
source: ./dist/*
when:
branch:
- master
- preview
volumes:
- name: cache
host:
path: /tmp/cache1
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/huangshengli/tduck-report-front.git
[email protected]:huangshengli/tduck-report-front.git
huangshengli
tduck-report-front
tduck-report-front
master

搜索帮助