Skip to content

Commit

Permalink
Upgrade to Azure Functions v3 (#58)
Browse files Browse the repository at this point in the history
* Upgrade to Azure Functions v3

* Update .NET Core SDK
  • Loading branch information
shibayan committed Dec 31, 2019
1 parent 150f1be commit 23d72ed
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 10 deletions.
8 changes: 4 additions & 4 deletions KeyVault.Acmebot/KeyVault.Acmebot.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netcoreapp2.2</TargetFramework>
<AzureFunctionsVersion>v2</AzureFunctionsVersion>
<TargetFramework>netcoreapp3.1</TargetFramework>
<AzureFunctionsVersion>v3</AzureFunctionsVersion>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="ACMESharpCore" Version="2.1.0.113" />
Expand All @@ -12,8 +12,8 @@
<PackageReference Include="Microsoft.Azure.Management.Dns" Version="3.0.1" />
<PackageReference Include="Microsoft.Azure.Services.AppAuthentication" Version="1.3.1" />
<PackageReference Include="Microsoft.Azure.WebJobs.Extensions.DurableTask" Version="2.1.0" />
<PackageReference Include="Microsoft.Extensions.Http" Version="2.2.0" />
<PackageReference Include="Microsoft.NET.Sdk.Functions" Version="1.0.31" />
<PackageReference Include="Microsoft.Extensions.Http" Version="3.1.0" />
<PackageReference Include="Microsoft.NET.Sdk.Functions" Version="3.0.2" />
</ItemGroup>
<ItemGroup>
<None Update="host.json">
Expand Down
9 changes: 5 additions & 4 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ trigger:

variables:
buildConfiguration: Release
dotnetSdkVersion: '2.2.x'
dotnetSdkVersion: '3.1.x'
isGitHubTag: $[startsWith(variables['Build.SourceBranch'], 'refs/tags/v')]
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
NUGET_XMLDOC_MODE: skip
Expand Down Expand Up @@ -49,9 +49,10 @@ stages:

- task: AzureFileCopy@3
inputs:
SourcePath: '$(Pipeline.Workspace)/function/latest.zip'
sourcePath: '$(Pipeline.Workspace)/**/latest.zip'
azureSubscription: 'Visual Studio Enterprise'
Destination: 'AzureBlob'
destination: 'AzureBlob'
storage: 'shibayan'
ContainerName: 'azure-keyvault-letsencrypt'
containerName: 'azure-keyvault-letsencrypt'
blobPrefix: 'v3'
displayName: 'Deploy to Storage Blob'
4 changes: 2 additions & 2 deletions azuredeploy.json
Original file line number Diff line number Diff line change
Expand Up @@ -114,11 +114,11 @@
},
{
"name": "WEBSITE_RUN_FROM_PACKAGE",
"value": "https://shibayan.blob.core.windows.net/azure-keyvault-letsencrypt/latest.zip"
"value": "https://shibayan.blob.core.windows.net/azure-keyvault-letsencrypt/v3/latest.zip"
},
{
"name": "FUNCTIONS_EXTENSION_VERSION",
"value": "~2"
"value": "~3"
},
{
"name": "FUNCTIONS_WORKER_RUNTIME",
Expand Down

0 comments on commit 23d72ed

Please sign in to comment.