1 Star 0 Fork 0

wss-gitee/custom-dumi-cd

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
s.yaml 2.03 KB
一键复制 编辑 原始数据 按行查看 历史
wss-gitee 提交于 2023-04-06 17:57 . fix: 日志
edition: 1.0.0
name: hello-world-app
access: "default_serverless_devs_access"
# access: wss-root
vars: # 全局变量
region: "cn-shenzhen"
service:
name: "assembly-line"
description: 'hello world by serverless devs'
logConfig: auto
role: acs:ram::1899690531354629:role/aliyunfcdefaultrole
services:
gateway:
component: fc
props:
region: ${vars.region}
service: ${vars.service}
function:
name: "gateway"
description: 'hello world by serverless devs'
runtime: nodejs16
codeUri: ./gateway
handler: index.handler
memorySize: 128
timeout: 20
instanceConcurrency: 128
environmentVariables:
WEBHOOK_PASSWORD: ${env.password}
REF: main
triggers:
- name: httpTrigger
type: http
config:
authType: anonymous
methods:
- GET
- POST
- OPTIONS
engine:
component: fc
actions:
pre-deploy:
- run: npm install --registry=https://registry.npmmirror.com
path: './engine'
post-deploy:
- component: fc api UpdateFunction --region ${vars.region} --header
'{"x-fc-disable-container-reuse":"True"}' --path
'{"serviceName":"${vars.service.name}","functionName":"engine"}'
props:
region: ${vars.region}
service: ${vars.service}
function:
name: "engine"
description: 'hello world by serverless devs'
runtime: nodejs16
codeUri: ./engine
handler: index.handler
memorySize: 640
timeout: 600
layers:
- acs:fc:${vars.region}:1899690531354629:layers/s-dumi/versions/1
environmentVariables:
PATH: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/var/fc/lang/nodejs16_alinode/bin:/opt/bin:/opt/nodejs/node_modules/.bin:/opt/nodejs/node_modules
TOKEN: ${env.token}
asyncConfiguration:
maxAsyncRetryAttempts: 1
statefulInvocation: true
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/wss-gitee/custom-dumi-cd.git
git@gitee.com:wss-gitee/custom-dumi-cd.git
wss-gitee
custom-dumi-cd
custom-dumi-cd
main

搜索帮助

0d507c66 1850385 C8b1a773 1850385