-
Notifications
You must be signed in to change notification settings - Fork 0
/
serverless.yml
41 lines (35 loc) · 897 Bytes
/
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
service: txgh-serverless
provider:
name: aws
runtime: nodejs6.10
environment:
GH_REPO: ${env:SLS_GH_REPO}
GH_BASE_BRANCH: ${env:SLS_GH_BASE_BRANCH}
GH_COMMITER_USERNAME: ${env:SLS_GH_COMMITER_USERNAME}
GH_COMMITER_EMAIL: ${env:SLS_GH_COMMITER_EMAIL}
GH_COMMITER_TOKEN: ${env:SLS_GH_COMMITER_TOKEN}
TX_ORG: ${env:SLS_TX_ORG}
TX_PROJECT: ${env:SLS_TX_PROJECT}
TX_SECRET: ${env:SLS_TX_SECRET}
TX_CREDENTIAL: ${env:SLS_TX_CREDENTIAL}
SITE_URL: ${env:SLS_SITE_URL}
package:
exclude:
- node_modules/**
plugins:
- serverless-plugin-include-dependencies
functions:
transifex:
handler: src/transifex.transifex
events:
- http:
path: transifex
method: post
cors: true
github:
handler: src/github.github
events:
- http:
path: github
method: post
cors: true