generated from justjavac/deno_starter
-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
s.yml
50 lines (48 loc) · 1.15 KB
/
s.yml
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
43
44
45
46
47
48
49
50
edition: 1.0.0
name: transform_fun
access: default
vars:
region: cn-beijing
deno_version: v1.21.0
services:
fc-deno_demo:
component: fc
actions:
pre-deploy:
- run: deno task build
path: ./
- run: |
mkdir bin && \
curl --output ./bin/deno.zip https://dl.deno.js.cn/release/${vars.deno_version}/deno-x86_64-unknown-linux-gnu.zip && \
unzip -d ./bin -o ./bin/deno.zip && \
chmod +x ./bin/deno && \
rm ./bin/deno.zip
path: ./
- run: s build
path: ./
post-deploy:
- run: rm server.js
path: .
- run: rm -rf bin
path: .
props:
region: ${vars.region}
service:
name: deno_demo
description: helloworld
internetAccess: true
function:
name: fc_deno
handler: index.handler
memorySize: 512
runtime: custom
codeUri: ./
customRuntimeConfig:
command:
- ./bin/deno
args:
- run
- '--allow-net'
- '--allow-env'
- '--no-check'
- server.js