-
Notifications
You must be signed in to change notification settings - Fork 836
/
s.yaml
39 lines (37 loc) · 1.11 KB
/
s.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
edition: 1.0.0
name: fans-medal-helper
access: "default"
vars:
region: "cn-hangzhou"
service:
name: "fans-medal-helper-service"
description: "B站粉丝牌助手"
logConfig: false
services:
fansmedalhelper:
component: fc
actions:
pre-deploy:
- run: pip3 install -r requirements.txt -t .
path: ./
props:
region: ${vars.region}
service: ${vars.service}
function:
name: "fans-medal-helper-function"
description: "B站粉丝牌助手"
runtime: python3.9
codeUri: ./
handler: main.run
memorySize: 128
timeout: 86400
environmentVariables:
USERS: ${env(USERS)}
TZ: Asia/Shanghai
triggers:
- name: timer
type: timer
config:
payload: ""
cronExpression: "CRON_TZ=Asia/Shanghai 0 1 0 * * *"
enable: true