зеркало из https://github.com/Azure/ForresterDemo.git
Delete .github/workflows directory
This commit is contained in:
Родитель
c96efe105d
Коммит
d31c1dc1b0
|
@ -1,48 +0,0 @@
|
|||
name: Build and deploy .NET Core application to Function App ToyotaLogisticsSystem with API Management Service ToyotaLogisticsSystem-apim-toyotalogisticssystem
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
env:
|
||||
AZURE_FUNCTIONAPP_NAME: ToyotaLogisticsSystem
|
||||
AZURE_FUNCTIONAPP_PACKAGE_PATH: ToyotaFunctionApp\.
|
||||
CONFIGURATION: Release
|
||||
DOTNET_CORE_VERSION: 3.1.x
|
||||
WORKING_DIRECTORY: ToyotaFunctionApp
|
||||
DOTNET_CORE_VERSION_INPROC: ''
|
||||
AZURE_APIM_RESOURCEGROUP: Toyota
|
||||
AZURE_APIM_SERVICENAME: ToyotaLogisticsSystem-apim
|
||||
AZURE_APIM_API_ID: toyotalogisticssystem
|
||||
AZURE_APIM_RESOURCE_PATH: /ToyotaLogisticsSystem
|
||||
AZURE_APIM_SWAGGERURL: https://toyotalogisticssystem.azurewebsites.net/api/swagger.json
|
||||
jobs:
|
||||
build-and-deploy:
|
||||
runs-on: windows-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Setup .NET Core
|
||||
uses: actions/setup-dotnet@v1
|
||||
with:
|
||||
dotnet-version: ${{ env.DOTNET_CORE_VERSION }}
|
||||
- name: Setup .NET Core (for inproc extensions)
|
||||
uses: actions/setup-dotnet@v1
|
||||
with:
|
||||
dotnet-version: ${{ env.DOTNET_CORE_VERSION_INPROC }}
|
||||
- name: Restore
|
||||
run: dotnet restore "${{ env.WORKING_DIRECTORY }}"
|
||||
- name: Build
|
||||
run: dotnet build "${{ env.WORKING_DIRECTORY }}" --configuration ${{ env.CONFIGURATION }} --no-restore
|
||||
- name: Publish
|
||||
run: dotnet publish "${{ env.WORKING_DIRECTORY }}" --configuration ${{ env.CONFIGURATION }} --no-build --output "${{ env.AZURE_FUNCTIONAPP_PACKAGE_PATH }}"
|
||||
- name: Deploy to Azure Function App
|
||||
uses: Azure/functions-action@v1
|
||||
with:
|
||||
app-name: ${{ env.AZURE_FUNCTIONAPP_NAME }}
|
||||
publish-profile: ${{ secrets.TOYOTALOGISTICSSYSTEM_FFFF }}
|
||||
package: ${{ env.AZURE_FUNCTIONAPP_PACKAGE_PATH }}
|
||||
- name: Azure Login
|
||||
uses: azure/login@v1
|
||||
with:
|
||||
creds: ${{ secrets.ToyotaLogisticsSystem_apim_SPN }}
|
||||
- name: Import API into Azure API Management
|
||||
run: az apim api import --path "${{ env.AZURE_APIM_RESOURCE_PATH }}" --resource-group ${{ env.AZURE_APIM_RESOURCEGROUP }} --service-name ${{ env.AZURE_APIM_SERVICENAME }} --api-id ${{ env.AZURE_APIM_API_ID }} --specification-url "${{ env.AZURE_APIM_SWAGGERURL }}" --specification-format OpenApi --subscription-required false
|
Загрузка…
Ссылка в новой задаче