diff --git a/.github/workflows/eshoponweb-cicd.yml b/.github/workflows/eshoponweb-cicd.yml index 3714a3af2..9338c6be0 100644 --- a/.github/workflows/eshoponweb-cicd.yml +++ b/.github/workflows/eshoponweb-cicd.yml @@ -1,15 +1,15 @@ name: eShopOnWeb Build and Test #Triggers (uncomment line below to use it) -#on: [push, workflow_dispatch] +on: [push, workflow_dispatch] #Environment variables https://docs.github.com/en/actions/learn-github-actions/environment-variables env: - RESOURCE-GROUP: rg-eshoponweb-NAME - LOCATION: westeurope + RESOURCE-GROUP: rg-eshoponweb-vignesh + LOCATION: West US 2 TEMPLATE-FILE: infra/webapp.bicep - SUBSCRIPTION-ID: YOUR-SUBS-ID - WEBAPP-NAME: eshoponweb-webapp-NAME + SUBSCRIPTION-ID: 2e89365b-8864-49d5-b5f2-f3bb66426738 + WEBAPP-NAME: eshoponweb-webapp-Vignesh jobs: #Build, test and publish .net web project in repository @@ -82,7 +82,7 @@ jobs: subscriptionId: ${{ env.SUBSCRIPTION-ID }} resourceGroupName: ${{ env.RESOURCE-GROUP }} template: bicep-template/webapp.bicep - parameters: "webAppName=${{ env.WEBAPP-NAME }} location=${{ env.LOCATION }}" + parameters: webAppName=eshoponweb-webapp-vignesh location=centralindia failOnStdErr: false # Publish website to Azure App Service (WebApp) diff --git a/infra/webapp.bicep b/infra/webapp.bicep index 52da333cf..5b9607572 100644 --- a/infra/webapp.bicep +++ b/infra/webapp.bicep @@ -1,5 +1,5 @@ param webAppName string // = uniqueString(resourceGroup().id) // unique String gets created from az cli instructions -param sku string = 'S1' // The SKU of App Service Plan +param sku string = 'F1' // The SKU of App Service Plan param location string = resourceGroup().location var appServicePlanName = toLower('AppServicePlan-${webAppName}') diff --git a/src/Web/Program.cs b/src/Web/Program.cs index 23767db01..cb8c6efed 100644 --- a/src/Web/Program.cs +++ b/src/Web/Program.cs @@ -1,3 +1,5 @@ +// My First Change1 +//secound using System.Net.Mime; using Ardalis.ListStartupServices; using Azure.Identity;