File tree Expand file tree Collapse file tree 2 files changed +66
-10
lines changed Expand file tree Collapse file tree 2 files changed +66
-10
lines changed Original file line number Diff line number Diff line change @@ -15,13 +15,13 @@ jobs:
15
15
- uses : actions/setup-node@v1
16
16
with :
17
17
node-version : ' 10.x'
18
- - name : ' run npm'
19
- run : |
20
- curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash
21
- npm i -g azure-functions-core-tools@core --unsafe-perm true
22
- cd AutomaticClockOuts
23
- npm install
24
- cd ../
25
- az login -u ${{ secrets.AZ_USERNAME }} -p ${{ secrets.AZ_PASSWORD }}
26
- func settings add FUNCTIONS_WORKER_RUNTIME node
27
- func azure functionapp publish time-tracker-azure-functions --node
18
+ # - name: 'run npm'
19
+ # run: |
20
+ # curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash
21
+ # npm i -g azure-functions-core-tools@core --unsafe-perm true
22
+ # cd AutomaticClockOuts
23
+ # npm install
24
+ # cd ../
25
+ # az login -u ${{ secrets.AZ_USERNAME }} -p ${{ secrets.AZ_PASSWORD }}
26
+ # func settings add FUNCTIONS_WORKER_RUNTIME node
27
+ # func azure functionapp publish time-tracker-azure-functions --node
Original file line number Diff line number Diff line change
1
+ # Welcome to Serverless!
2
+ #
3
+ # This file is the main config file for your service.
4
+ # It's very minimal at this point and uses default values.
5
+ # You can always add more config options for more control.
6
+ # We've included some commented out config examples here.
7
+ # Just uncomment any of them to get that config option.
8
+ #
9
+ # For full config options, check the docs:
10
+ # docs.serverless.com
11
+ #
12
+ # Happy Coding!
13
+
14
+ service : nodejs-functions
15
+
16
+ # You can pin your service to only deploy with a specific Serverless version
17
+ # Check out our docs for more details
18
+ frameworkVersion : ' 2'
19
+
20
+ provider :
21
+ name : azure
22
+ region : West US 2
23
+ runtime : nodejs12
24
+ # os: linux # linux is the only operating system available for python
25
+ prefix : " time-tracker" # prefix of generated resource name
26
+ environment :
27
+ ENDPOINT : ' https://time-tracker-db.documents.azure.com:443/'
28
+ KEY : ' 6lyRD8ma0VQjcMbeSMFOTDGwNDptcEGfngp3c9DStNAMCNh2MRbkNWmRinoNvuB6aH51EMEkgeP5WfW3VZiV9g=='
29
+ CLIENT_ID : ' 5f930d3d-5f0d-43ed-8ba8-923b64341744'
30
+ AUTHORITY : ' https://login.microsoftonline.com/cc925a5d-9644-4a4f-8d99-0bee49aadd05'
31
+ CLIENT_SECRET : ' yFo=l7IS/5K7-J=49IYgw1?LU80U?U0d'
32
+ SLACK_WEBHOOK : ' https://hooks.slack.com/services/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'
33
+
34
+
35
+ custom :
36
+ globalSchedule : cron(0 0 * * *)
37
+
38
+
39
+ plugins :
40
+ - serverless-azure-functions
41
+ package :
42
+ # include:
43
+ # - include-me.js
44
+ # - include-me-dir/**
45
+ exclude :
46
+ # - exclude-me.js
47
+ # - exclude-me-dir/**
48
+ - local.settings.json
49
+ - .vscode/**
50
+
51
+ functions :
52
+ automatic-clock-outs :
53
+ prefix : automatic-clock-outs
54
+ handler : src/handlers/automatic-clock-outs/index.js
55
+ events :
56
+ - timer : ${self:custom.globalSchedule}
You can’t perform that action at this time.
0 commit comments