From e7be4589712d26a3659cb30e676758a98c975e16 Mon Sep 17 00:00:00 2001 From: Gwyneth Pena-Siguenza Date: Sun, 19 Nov 2023 20:42:49 -0500 Subject: [PATCH] updates to worklofw --- README.md | 9 +++++---- infra/resources.bicep | 2 +- serverless-resume-api.sln | 25 +++++++++++++++++++++++++ 3 files changed, 31 insertions(+), 5 deletions(-) create mode 100644 serverless-resume-api.sln diff --git a/README.md b/README.md index 48afaf8..bdc227d 100644 --- a/README.md +++ b/README.md @@ -88,13 +88,14 @@ For local developer environment ## Configure CI/CD with GitHub actions -1. We'll need to get our Function's Publish Profile, run the following command in the terminal and copy the output: +1. In the .github folder, edit your `build.yml` and update the `AZURE_FUNCTIONAPP_NAME` value with the name of your function app. +2. We'll need to get our Function's Publish Profile, run the following command in the terminal and copy the output: ```sh az functionapp deployment list-publishing-profiles --name $functionAppName --resource-group rg-serverlessresumeapi --xml ``` -2. In your GitHub repo, go to settings > secrets and variables > actions > create a secret named `AZURE_FUNCTIONAPP_PUBLISH_PROFILE` with the contents of your publish profile you just copied. -3. Head to Actions tab on your Repo and manually run the workflow. -4. Once it's complete. Your resume api is now in production. We can view it in 3 ways: +3. In your GitHub repo, go to settings > secrets and variables > actions > create a secret named `AZURE_FUNCTIONAPP_PUBLISH_PROFILE` with the contents of your publish profile you just copied. +4. Head to Actions tab on your Repo and manually run the workflow. +5. Once it's complete. Your resume api is now in production. We can view it in 3 ways: - Using curl in the terminal: ```sh curl $functionUri/getresume diff --git a/infra/resources.bicep b/infra/resources.bicep index 08b9a09..6bd2317 100644 --- a/infra/resources.bicep +++ b/infra/resources.bicep @@ -70,7 +70,7 @@ resource functionApp 'Microsoft.Web/sites@2022-03-01' = { serverFarmId: hostingPlan.id siteConfig: { - linuxFxVersion: 'dotnet-isolated|6.0' + linuxFxVersion: 'dotnet-isolated|8.0' appSettings: [ { diff --git a/serverless-resume-api.sln b/serverless-resume-api.sln new file mode 100644 index 0000000..20bdabd --- /dev/null +++ b/serverless-resume-api.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.5.002.0 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "serverless-resume-api", "src\serverless-resume-api.csproj", "{EC0215F9-5C5F-4D8A-AA61-401DA0E4EFD3}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {EC0215F9-5C5F-4D8A-AA61-401DA0E4EFD3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {EC0215F9-5C5F-4D8A-AA61-401DA0E4EFD3}.Debug|Any CPU.Build.0 = Debug|Any CPU + {EC0215F9-5C5F-4D8A-AA61-401DA0E4EFD3}.Release|Any CPU.ActiveCfg = Release|Any CPU + {EC0215F9-5C5F-4D8A-AA61-401DA0E4EFD3}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {FD62A87A-A6CA-4CCC-8F34-56E1E7A504CC} + EndGlobalSection +EndGlobal