Skip to content

Commit

Permalink
updates to worklofw
Browse files Browse the repository at this point in the history
  • Loading branch information
madebygps committed Nov 20, 2023
1 parent 307109d commit e7be458
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 5 deletions.
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion infra/resources.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -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: [
{
Expand Down
25 changes: 25 additions & 0 deletions serverless-resume-api.sln
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit e7be458

Please sign in to comment.