Skip to content

Commit 3976f0f

Browse files
committed
Moved scripts into their own folder
1 parent fa4caff commit 3976f0f

10 files changed

+25
-14
lines changed

.gitignore

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,5 @@ __azurite_db*__.json
105105
# if you fork this repo, you can uncomment this and commit your own filter.yml
106106
filter.yml
107107

108-
# local example files
109-
*.example
110-
111108
# Azure environment file
112109
azure.env

filter.yml

Lines changed: 0 additions & 11 deletions
This file was deleted.

scripts/azure.env.example

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Save as: azure.env
2+
3+
# if you want to use a different location than eastus, you can change this
4+
AZURE_LOCATION="eastus"
5+
6+
# fill in your Azure subscription ID
7+
AZURE_SUBSCRIPTION_ID="..."
8+
9+
# pick an appropriate name for the function app
10+
AZURE_FUNCTION_APP_NAME="teams-secret-scanning-notifier"
11+
12+
# pick an appropriate name for a new resource group
13+
AZURE_RESOURCE_GROUP="${AZURE_FUNCTION_APP_NAME}-rg"
File renamed without changes.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
#!/bin/bash
22

3+
set -euo pipefail
4+
35
. ./azure.env
46

7+
./make-function-zip.sh
8+
59
az account set --subscription "${AZURE_SUBSCRIPTION_ID}"
610
az functionapp deployment source config-zip --resource-group "${AZURE_RESOURCE_GROUP}" --name "${AZURE_FUNCTION_APP_NAME}" --src teams-secret-scanning-notifier.zip

deploy.sh renamed to scripts/deploy.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/bin/bash
22

3+
set -euo pipefail
4+
35
. ./azure.env
46

57
npm run build

get-function-url.sh renamed to scripts/get-function-url.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/bin/bash
22

3+
set -euo pipefail
4+
35
. ./azure.env
46

57
az account set --subscription "${AZURE_SUBSCRIPTION_ID}"
File renamed without changes.

sync-settings-local-to-remote.sh renamed to scripts/sync-settings-local-to-remote.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/bin/bash
22

3+
set -euo pipefail
4+
35
. ./azure.env
46

57
az account set --subscription "${AZURE_SUBSCRIPTION_ID}"

sync-settings-remote-to-local.sh renamed to scripts/sync-settings-remote-to-local.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/bin/bash
22

3+
set -euo pipefail
4+
35
. ./azure.env
46

57
az account set --subscription "${AZURE_SUBSCRIPTION_ID}"

0 commit comments

Comments
 (0)