Skip to content
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

pr #339

Open
wants to merge 12 commits into
base: main
Choose a base branch
from
18 changes: 7 additions & 11 deletions .github/workflows/eshoponweb-cicd.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,15 @@
name: eShopOnWeb Build and Test

#Triggers (uncomment line below to use it)
#on: [push, workflow_dispatch]
on:
workflow_dispatch:


#Environment variables https://docs.github.com/en/actions/learn-github-actions/environment-variables
env:
RESOURCE-GROUP: rg-eshoponweb-NAME
RESOURCE_GROUP: rg-eshoponweb-westeurope
LOCATION: westeurope
TEMPLATE-FILE: infra/webapp.bicep
SUBSCRIPTION-ID: YOUR-SUBS-ID
WEBAPP-NAME: eshoponweb-webapp-NAME


TEMPLATE_FILE: infra/webapp.bicep
SUBSCRIPTION_ID: 534f67f5-645c-45c4-825b-6e228e272a74
WEBAPP_NAME: devops-webapp-westeurope-411724194
jobs:
#Build, test and publish .net web project in repository
buildandtest:
Expand Down Expand Up @@ -101,5 +99,3 @@ jobs:
- name: Publish Website to WebApp
uses: Azure/cli@v2
with:
inlineScript: |
az webapp deploy --name ${{ env.WEBAPP-NAME }} --resource-group ${{ env.RESOURCE-GROUP }} --src-path .net-app/app.zip --type zip
2 changes: 1 addition & 1 deletion infra/webapp.bicep
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
param webAppName string = uniqueString(resourceGroup().id) // Generate unique String for web app name
param sku string = 'B1' // The SKU of App Service Plan
param sku string = 'S1' // The SKU of App Service Plan
param location string = resourceGroup().location

var appServicePlanName = toLower('AppServicePlan-${webAppName}')
Expand Down