Skip to content

Commit 6fd79dd

Browse files
committed
Initial commit
0 parents  commit 6fd79dd

File tree

230 files changed

+68622
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

230 files changed

+68622
-0
lines changed

.devcontainer/Dockerfile

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Find the Dockerfile for mcr.microsoft.com/azure-functions/node at the following URLs:
2+
# Node 10: https://github.com/Azure/azure-functions-docker/blob/master/host/3.0/buster/amd64/node/node10/node10-core-tools.Dockerfile
3+
# Node 12: https://github.com/Azure/azure-functions-docker/blob/master/host/3.0/buster/amd64/node/node12/node12-core-tools.Dockerfile
4+
ARG VARIANT=12
5+
FROM mcr.microsoft.com/azure-functions/node:3.0-node${VARIANT}-core-tools
6+
7+
# [Optional] Uncomment this section to install additional OS packages.
8+
# RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
9+
# && apt-get -y install --no-install-recommends <your-package-list-here>
10+
11+
# DONT DO THIS
12+
# RUN npm install -g @azure/static-web-apps-cli

.devcontainer/devcontainer.json

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at:
2+
// https://github.com/microsoft/vscode-dev-containers/tree/v0.179.0/containers/azure-functions-node
3+
{
4+
"name": "Azure Functions & Node.js",
5+
"build": {
6+
"dockerfile": "Dockerfile",
7+
// Update 'VARIANT' to pick a Node.js version: 10, 12
8+
"args": { "VARIANT": "12" }
9+
},
10+
"forwardPorts": [7071],
11+
12+
// Set *default* container specific settings.json values on container create.
13+
"settings": {
14+
"terminal.integrated.shell.linux": "/bin/bash"
15+
},
16+
17+
// Add the IDs of extensions you want installed when the container is created.
18+
"extensions": [
19+
"ms-azuretools.vscode-azurefunctions",
20+
"dbaeumer.vscode-eslint",
21+
"svelte.svelte-vscode",
22+
"esbenp.prettier-vscode",
23+
"github.vscode-pull-request-github",
24+
"ms-azuretools.vscode-azurestaticwebapps"
25+
],
26+
27+
// Use 'postCreateCommand' to run commands after the container is created.
28+
"postCreateCommand": "(cd svelte-app && npm install) ; (cd api && npm install)",
29+
"postStartCommand": "(cd svelte-app && npm run build) ; (cd api && func start) ; (cd svelte-app && npm run local)",
30+
31+
// Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
32+
"remoteUser": "node"
33+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: Azure Static Web Apps CI/CD
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
paths:
8+
- react-app/**
9+
- api/**
10+
- .github/workflows/*brave-desert*.yml
11+
pull_request:
12+
types: [opened, synchronize, reopened, closed]
13+
branches:
14+
- main
15+
paths:
16+
- react-app/**
17+
- api/**
18+
- .github/workflows/*brave-desert*.yml
19+
20+
jobs:
21+
build_and_deploy_job:
22+
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.action != 'closed')
23+
runs-on: ubuntu-latest
24+
name: Build and Deploy Job
25+
steps:
26+
- uses: actions/checkout@v2
27+
with:
28+
submodules: true
29+
- name: Build And Deploy
30+
id: builddeploy
31+
uses: Azure/static-web-apps-deploy@v1
32+
with:
33+
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_BRAVE_DESERT_0E3E58810 }}
34+
repo_token: ${{ secrets.GITHUB_TOKEN }} # Used for Github integrations (i.e. PR comments)
35+
action: "upload"
36+
###### Repository/Build Configurations - These values can be configured to match your app requirements. ######
37+
# For more information regarding Static Web App workflow configurations, please visit: https://aka.ms/swaworkflowconfig
38+
app_location: "/react-app" # App source code path
39+
api_location: "api" # Api source code path - optional
40+
output_location: "build" # Built app content directory - optional
41+
###### End of Repository/Build Configurations ######
42+
43+
close_pull_request_job:
44+
if: github.event_name == 'pull_request' && github.event.action == 'closed'
45+
runs-on: ubuntu-latest
46+
name: Close Pull Request Job
47+
steps:
48+
- name: Close Pull Request
49+
id: closepullrequest
50+
uses: Azure/static-web-apps-deploy@v1
51+
with:
52+
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_BRAVE_DESERT_0E3E58810 }}
53+
action: "close"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: Azure Static Web Apps CI/CD
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
paths:
8+
- angular-app/**
9+
- api/**
10+
- .github/workflows/*gentle-cliff*.yml
11+
pull_request:
12+
types: [opened, synchronize, reopened, closed]
13+
branches:
14+
- main
15+
paths:
16+
- angular-app/**
17+
- api/**
18+
- .github/workflows/*gentle-cliff*.yml
19+
20+
jobs:
21+
build_and_deploy_job:
22+
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.action != 'closed')
23+
runs-on: ubuntu-latest
24+
name: Build and Deploy Job
25+
steps:
26+
- uses: actions/checkout@v2
27+
with:
28+
submodules: true
29+
- name: Build And Deploy
30+
id: builddeploy
31+
uses: Azure/static-web-apps-deploy@v1
32+
with:
33+
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_GENTLE_CLIFF_0BC570010 }}
34+
repo_token: ${{ secrets.GITHUB_TOKEN }} # Used for Github integrations (i.e. PR comments)
35+
action: "upload"
36+
###### Repository/Build Configurations - These values can be configured to match your app requirements. ######
37+
# For more information regarding Static Web App workflow configurations, please visit: https://aka.ms/swaworkflowconfig
38+
app_location: "/angular-app" # App source code path
39+
api_location: "api" # Api source code path - optional
40+
output_location: "dist/angular-app" # Built app content directory - optional
41+
###### End of Repository/Build Configurations ######
42+
43+
close_pull_request_job:
44+
if: github.event_name == 'pull_request' && github.event.action == 'closed'
45+
runs-on: ubuntu-latest
46+
name: Close Pull Request Job
47+
steps:
48+
- name: Close Pull Request
49+
id: closepullrequest
50+
uses: Azure/static-web-apps-deploy@v1
51+
with:
52+
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_GENTLE_CLIFF_0BC570010 }}
53+
action: "close"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: Azure Static Web Apps CI/CD
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
paths:
8+
- vue-app/**
9+
- api/**
10+
- .github/workflows/*purple-cliff*.yml
11+
pull_request:
12+
types: [opened, synchronize, reopened, closed]
13+
branches:
14+
- main
15+
paths:
16+
- vue-app/**
17+
- api/**
18+
- .github/workflows/*purple-cliff*.yml
19+
20+
jobs:
21+
build_and_deploy_job:
22+
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.action != 'closed')
23+
runs-on: ubuntu-latest
24+
name: Build and Deploy Job
25+
steps:
26+
- uses: actions/checkout@v2
27+
with:
28+
submodules: true
29+
- name: Build And Deploy
30+
id: builddeploy
31+
uses: Azure/static-web-apps-deploy@v1
32+
with:
33+
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_PURPLE_CLIFF_0E5D9B80F }}
34+
repo_token: ${{ secrets.GITHUB_TOKEN }} # Used for Github integrations (i.e. PR comments)
35+
action: "upload"
36+
###### Repository/Build Configurations - These values can be configured to match you app requirements. ######
37+
# For more information regarding Static Web App workflow configurations, please visit: https://aka.ms/swaworkflowconfig
38+
app_location: "vue-app" # App source code path
39+
api_location: "api" # Api source code path - optional
40+
app_artifact_location: "dist" # Built app content directory - optional
41+
###### End of Repository/Build Configurations ######
42+
43+
close_pull_request_job:
44+
if: github.event_name == 'pull_request' && github.event.action == 'closed'
45+
runs-on: ubuntu-latest
46+
name: Close Pull Request Job
47+
steps:
48+
- name: Close Pull Request
49+
id: closepullrequest
50+
uses: Azure/static-web-apps-deploy@v1
51+
with:
52+
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_PURPLE_CLIFF_0E5D9B80F }}
53+
action: "close"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: Azure Static Web Apps CI/CD
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
paths:
8+
- svelte-app/**
9+
- api/**
10+
- .github/workflows/*purple-pond*.yml
11+
pull_request:
12+
types: [opened, synchronize, reopened, closed]
13+
branches:
14+
- main
15+
paths:
16+
- svelte-app/**
17+
- api/**
18+
- .github/workflows/*purple-pond*.yml
19+
20+
jobs:
21+
build_and_deploy_job:
22+
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.action != 'closed')
23+
runs-on: ubuntu-latest
24+
name: Build and Deploy Job
25+
steps:
26+
- uses: actions/checkout@v2
27+
with:
28+
submodules: true
29+
- name: Build And Deploy
30+
id: builddeploy
31+
uses: Azure/static-web-apps-deploy@v1
32+
with:
33+
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_PURPLE_POND_08F780F0F }}
34+
repo_token: ${{ secrets.GITHUB_TOKEN }} # Used for Github integrations (i.e. PR comments)
35+
action: "upload"
36+
###### Repository/Build Configurations - These values can be configured to match you app requirements. ######
37+
# For more information regarding Static Web App workflow configurations, please visit: https://aka.ms/swaworkflowconfig
38+
app_location: "svelte-app" # App source code path
39+
api_location: "api" # Api source code path - optional
40+
app_artifact_location: "public" # Built app content directory - optional
41+
###### End of Repository/Build Configurations ######
42+
43+
close_pull_request_job:
44+
if: github.event_name == 'pull_request' && github.event.action == 'closed'
45+
runs-on: ubuntu-latest
46+
name: Close Pull Request Job
47+
steps:
48+
- name: Close Pull Request
49+
id: closepullrequest
50+
uses: Azure/static-web-apps-deploy@v1
51+
with:
52+
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_PURPLE_POND_08F780F0F }}
53+
action: "close"

0 commit comments

Comments
 (0)