Skip to content

commit #29

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 31 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
8699398
commit
EttorePannain Oct 15, 2022
095d5f2
commit
EttorePannain Oct 15, 2022
16a5ef7
231022-1153
EttorePannain Oct 23, 2022
9658e62
Abilita database YAML
EttorePannain Oct 23, 2022
55f4ab3
abilitazione function workflow
EttorePannain Oct 23, 2022
36716c3
push di funzione
EttorePannain Oct 23, 2022
b785160
test
EttorePannain Oct 23, 2022
d33a24a
enable function workflow
EttorePannain Oct 24, 2022
5a57e97
ci: add Azure Static Web Apps workflow file
EttorePannain Oct 24, 2022
c6e1f8c
Abilita database YAML"
EttorePannain Oct 24, 2022
71a7701
Merge branch 'main' of https://github.com/EttorePannain/serverless-fu…
EttorePannain Oct 24, 2022
bc42faf
enable function workflow
EttorePannain Oct 24, 2022
4306155
db push conn string
EttorePannain Oct 24, 2022
7d57190
ci: add Azure Static Web Apps workflow file
EttorePannain Oct 25, 2022
141ef16
Abilita database YAML
EttorePannain Oct 25, 2022
eeb73cb
Merge branch 'main' of https://github.com/EttorePannain/serverless-fu…
EttorePannain Oct 25, 2022
1a8251e
enable function workflow
EttorePannain Oct 25, 2022
061c9d2
enable function workflow
EttorePannain Oct 25, 2022
3b02e73
enable function workflow -1036
EttorePannain Oct 25, 2022
9572135
enable function workflow v251022-1203
EttorePannain Oct 25, 2022
20f72b9
enable function workflow.251022-1225
EttorePannain Oct 25, 2022
caab8ce
enable function workflow.251022-1236
EttorePannain Oct 25, 2022
384f42c
restore yml
EttorePannain Oct 25, 2022
bb75161
Abilita database YAML
EttorePannain Oct 25, 2022
1672024
abilita workflow function
EttorePannain Oct 25, 2022
157c2d7
ci: add Azure Static Web Apps workflow file
EttorePannain Oct 25, 2022
8c2608c
enable app statica workflow
EttorePannain Oct 25, 2022
c329e63
Abilita database YAML
EttorePannain Oct 26, 2022
1e6edec
Abilita database YAML mod2
EttorePannain Oct 26, 2022
1809663
abilita workflow funzione
EttorePannain Oct 26, 2022
8ca5e46
deploy 261022
EttorePannain Oct 26, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 45 additions & 0 deletions .github/workflows/azure-static-web-apps-brave-forest-06c726610.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Azure Static Web Apps CI/CD

on:
push:
branches:
- main
pull_request:
types: [opened, synchronize, reopened, closed]
branches:
- main

jobs:
build_and_deploy_job:
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.action != 'closed')
runs-on: ubuntu-latest
name: Build and Deploy Job
steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: Build And Deploy
id: builddeploy
uses: Azure/static-web-apps-deploy@v1
with:
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_BRAVE_FOREST_06C726610 }}
repo_token: ${{ secrets.GITHUB_TOKEN }} # Used for Github integrations (i.e. PR comments)
action: "upload"
###### Repository/Build Configurations - These values can be configured to match your app requirements. ######
# For more information regarding Static Web App workflow configurations, please visit: https://aka.ms/swaworkflowconfig
app_location: "azure-static-web-app/client" # App source code path
api_location: "azure-static-web-app/api/dotnet" # Api source code path - optional
output_location: "" # Built app content directory - optional
###### End of Repository/Build Configurations ######

close_pull_request_job:
if: github.event_name == 'pull_request' && github.event.action == 'closed'
runs-on: ubuntu-latest
name: Close Pull Request Job
steps:
- name: Close Pull Request
id: closepullrequest
uses: Azure/static-web-apps-deploy@v1
with:
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_BRAVE_FOREST_06C726610 }}
action: "close"
45 changes: 45 additions & 0 deletions .github/workflows/azure-static-web-apps-kind-sea-06477601e.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Azure Static Web Apps CI/CD

on:
push:
branches:
- main
pull_request:
types: [opened, synchronize, reopened, closed]
branches:
- main

jobs:
build_and_deploy_job:
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.action != 'closed')
runs-on: ubuntu-latest
name: Build and Deploy Job
steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: Build And Deploy
id: builddeploy
uses: Azure/static-web-apps-deploy@v1
with:
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_KIND_SEA_06477601E }}
repo_token: ${{ secrets.GITHUB_TOKEN }} # Used for Github integrations (i.e. PR comments)
action: "upload"
###### Repository/Build Configurations - These values can be configured to match your app requirements. ######
# For more information regarding Static Web App workflow configurations, please visit: https://aka.ms/swaworkflowconfig
app_location: "/" # App source code path
api_location: "" # Api source code path - optional
output_location: "" # Built app content directory - optional
###### End of Repository/Build Configurations ######

close_pull_request_job:
if: github.event_name == 'pull_request' && github.event.action == 'closed'
runs-on: ubuntu-latest
name: Close Pull Request Job
steps:
- name: Close Pull Request
id: closepullrequest
uses: Azure/static-web-apps-deploy@v1
with:
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_KIND_SEA_06477601E }}
action: "close"
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Azure Static Web Apps CI/CD

on:
push:
branches:
- main
pull_request:
types: [opened, synchronize, reopened, closed]
branches:
- main

jobs:
build_and_deploy_job:
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.action != 'closed')
runs-on: ubuntu-latest
name: Build and Deploy Job
steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: Build And Deploy
id: builddeploy
uses: Azure/static-web-apps-deploy@v1
with:
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_WONDERFUL_ISLAND_0C32A881E }}
repo_token: ${{ secrets.GITHUB_TOKEN }} # Used for Github integrations (i.e. PR comments)
action: "upload"
###### Repository/Build Configurations - These values can be configured to match your app requirements. ######
# For more information regarding Static Web App workflow configurations, please visit: https://aka.ms/swaworkflowconfig
app_location: "/" # App source code path
api_location: "" # Api source code path - optional
output_location: "" # Built app content directory - optional
###### End of Repository/Build Configurations ######

close_pull_request_job:
if: github.event_name == 'pull_request' && github.event.action == 'closed'
runs-on: ubuntu-latest
name: Close Pull Request Job
steps:
- name: Close Pull Request
id: closepullrequest
uses: Azure/static-web-apps-deploy@v1
with:
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_WONDERFUL_ISLAND_0C32A881E }}
action: "close"
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: 'Deploy Azure SQL Database schema'
name: 'Deploy Azure SQL Database schema versione del 26-10-2022-11:00'

on:
push:
Expand Down
39 changes: 39 additions & 0 deletions .github/workflows/dotnetfunction.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Deploy DotNet project to function app with a Linux environment

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

env:
AZURE_FUNCTIONAPP_PACKAGE_PATH: 'azure-function/dotnet' # set this to the path to your web app project, defaults to the repository root
AZURE_FUNCTIONAPP_NAME: antho-catch-bus # set this to your application's name
DOTNET_VERSION: '6.0'

jobs:
build-and-deploy-function-app:
runs-on: ubuntu-latest
steps:
- name: 'Checkout GitHub Action'
uses: actions/checkout@main

- name: Setup DotNet ${{ env.DOTNET_VERSION }} Environment
uses: actions/setup-dotnet@v1
with:
dotnet-version: ${{ env.DOTNET_VERSION }}

- name: 'Resolve Project Dependencies Using Dotnet'
shell: bash
run: |
pushd './${{ env.AZURE_FUNCTIONAPP_PACKAGE_PATH }}'
dotnet build --configuration Release --output ./output
popd
- name: 'Run Azure Functions Action'
uses: Azure/functions-action@v1
id: fa
with:
app-name: ${{ env.AZURE_FUNCTIONAPP_NAME }}
package: '${{ env.AZURE_FUNCTIONAPP_PACKAGE_PATH }}/output'
publish-profile: ${{ secrets.AZURE_FUNCTIONAPP_PUBLISH_PROFILE }}

6 changes: 6 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"recommendations": [
"ms-azuretools.vscode-azurefunctions",
"ms-dotnettools.csharp"
]
}
11 changes: 11 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "Attach to .NET Functions",
"type": "coreclr",
"request": "attach",
"processId": "${command:azureFunctions.pickProcess}"
}
]
}
11 changes: 10 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,14 @@
"enable": true,
"baseUri": "/api",
"proxyUri": "http://localhost:7071/api"
}
},
"azureFunctions.projectSubpath": "azure-static-web-app\\api\\dotnet",
"azureFunctions.deploySubpath": "azure-static-web-app\\api\\dotnet/bin/Release/netcoreapp3.1/publish",
"azureFunctions.projectLanguage": "C#",
"azureFunctions.projectRuntime": "~3",
"debug.internalConsoleOptions": "neverOpen",
"azureFunctions.preDeployTask": "publish (functions)",
"githubPullRequests.ignoredPullRequestBranches": [
"main"
]
}
81 changes: 81 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "clean (functions)",
"command": "dotnet",
"args": [
"clean",
"/property:GenerateFullPaths=true",
"/consoleloggerparameters:NoSummary"
],
"type": "process",
"problemMatcher": "$msCompile",
"options": {
"cwd": "${workspaceFolder}/azure-static-web-app\\api\\dotnet"
}
},
{
"label": "build (functions)",
"command": "dotnet",
"args": [
"build",
"/property:GenerateFullPaths=true",
"/consoleloggerparameters:NoSummary"
],
"type": "process",
"dependsOn": "clean (functions)",
"group": {
"kind": "build",
"isDefault": true
},
"problemMatcher": "$msCompile",
"options": {
"cwd": "${workspaceFolder}/azure-static-web-app\\api\\dotnet"
}
},
{
"label": "clean release (functions)",
"command": "dotnet",
"args": [
"clean",
"--configuration",
"Release",
"/property:GenerateFullPaths=true",
"/consoleloggerparameters:NoSummary"
],
"type": "process",
"problemMatcher": "$msCompile",
"options": {
"cwd": "${workspaceFolder}/azure-static-web-app\\api\\dotnet"
}
},
{
"label": "publish (functions)",
"command": "dotnet",
"args": [
"publish",
"--configuration",
"Release",
"/property:GenerateFullPaths=true",
"/consoleloggerparameters:NoSummary"
],
"type": "process",
"dependsOn": "clean release (functions)",
"problemMatcher": "$msCompile",
"options": {
"cwd": "${workspaceFolder}/azure-static-web-app\\api\\dotnet"
}
},
{
"type": "func",
"dependsOn": "build (functions)",
"options": {
"cwd": "${workspaceFolder}/azure-static-web-app\\api\\dotnet/bin/Debug/netcoreapp3.1"
},
"command": "host start",
"isBackground": true,
"problemMatcher": "$func-dotnet-watch"
}
]
}
Empty file added database/notebooks/myTest.ipynb
Empty file.