forked from XiaoMiku01/fansMedalHelper
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy paths.yaml
42 lines (40 loc) · 1.28 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
40
41
42
edition: 1.0.0
name: fans-medal-helper
access: "default"
vars:
region: "cn-hangzhou"
service:
name: "fans-medal-helper-service"
description: "B站粉丝牌助手"
logConfig: auto
services:
fansmedalhelper:
component: fc
actions:
pre-deploy:
- run: pip3 install -r requirements.txt -t .
path: ./code
- run: git clone https://github.com/XiaoMiku01/fansMedalHelper.git
path: ./code
- run: cd fansMedalHelper && cp -r * .. && cd ..
path: ./code
props:
region: ${vars.region}
service: ${vars.service}
function:
name: "fans-medal-helper-function"
description: "B站粉丝牌助手"
runtime: python3.9
codeUri: ./code
handler: main.run
memorySize: 128
timeout: 86400
environmentVariables:
USERS: ${env(USERS)}
triggers:
- name: timer
type: timer
config:
payload: ""
cronExpression: "CRON_TZ=Asia/Shanghai 0 1 0 * * *"
enable: true