forked from chevah/github-hooks-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
serverless.yml
54 lines (48 loc) · 1.06 KB
/
serverless.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
51
52
53
54
# See Serverless configuration docs:
# https://github.com/serverless/serverless-azure-functions/blob/master/docs/CONFIG.md
service: githubhooks
frameworkVersion: '3'
provider:
name: azure
region: West Europe
runtime: python3.8
environment:
VARIABLE_FOO: 'foo'
plugins:
- serverless-azure-functions
package:
patterns:
- '!env/**'
- '!.env/**'
- '!venv/**'
- '!local.settings.json'
- '!.vscode/**'
- '!__pycache__/**'
- '!node_modules/**'
- '!.python_packages/**'
- '!.funcignore'
- '!package.json'
- '!package-lock.json'
- '!.gitignore'
- '!.git/**'
- '!chevah/github_hooks_server/tests/**'
- '!**.pyc'
- '!.pytest_cache/**'
- '!.gitsecret/**'
- '!.idea/**'
- '!test/**'
functions:
ping:
handler: chevah/github_hooks_server/server.ping
events:
- http: true
methods:
- GET
authLevel: anonymous
hook:
handler: chevah/github_hooks_server/server.hook
events:
- http: true
methods:
- POST
authLevel: anonymous