serverless-devs / serverless-cd Goto Github PK
View Code? Open in Web Editor NEWa simple but powerful cd system, build on serverless architecture
a simple but powerful cd system, build on serverless architecture
作为项目级别存储:
实际存储NAS路径 为: /mnt/auto/cache
cache:
paths:
- ./node-modules
- ./public
key: npm-${{ hashFiles('package-lock.json') }}
问题1: 如何存储数据
将 ./node-modules
,./public
分别存入 /mnt/auto/${appName}/${key} 文件下
问题2: 什么时机进行数据存储
识别如果是 cache的步骤, onComplete 添加默认 存储的步骤
问题3: 缓存什么时候生效
默认在onInit 阶段生效
问题4: 缓存如何生效?
默认以软链形式进行生效,格式为 ln -s /mnt/auto/${appName}/${key}/node-modules node-modules
问题5: 软链冲突如何解决?
假设已经存在了 node_modules,如何处理冲突?
cache:
npm: true
等于=>
cache:
paths:
- ./node-modules
key: npm-${{ hashFiles('package-lock.json') }}
monorepo对于统一项目管理非常方便。
无法实现单独仓库的fork
https://github.com/serverless-cd-demo
很好的支持每个仓库fork的需求
无法很好的进行管理,比如如何进行统一升级等
使用OSS作为日志存储,在系统实例进行销毁时候,无法进行处理(将异常日志上传上去)
可否使用 pre-stop进行处理?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.