Skip to content

Update NuGet to point to Azure Artifacts. #658

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

Merged
merged 5 commits into from
Jul 14, 2022
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions NuGet.Config.AzureArtifacts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<clear />
<add key="PublicRegistriesFeed" value="https://twcsecurityassurance.pkgs.visualstudio.com/SecurityEngineering/_packaging/PublicRegistriesFeed/nuget/v3/index.json" />
</packageSources>
</configuration>
2 changes: 1 addition & 1 deletion NuGet.Config → NuGet.Config.Public
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<clear/>
<clear />
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" protocolVersion="3" />
</packageSources>
</configuration>
2 changes: 1 addition & 1 deletion Pipelines/core-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ stages:
inputs:
packageType: 'sdk'
version: '5.x'
- script: 'dotnet tool install -g nbgv'
- script: 'dotnet tool install -g nbgv --configfile NuGet.Config.Public'
displayName: 'Install GitVersioning'
- task: PowerShell@2
displayName: Set Release Version
Expand Down
3 changes: 3 additions & 0 deletions Pipelines/templates/dotnet-publish-linux-mac-job.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ jobs:
pool:
vmImage: 'ubuntu-latest'
steps:
- task: NuGetAuthenticate@1
- task: UseDotNet@2
displayName: Install Dotnet SDK
inputs:
Expand All @@ -56,6 +57,8 @@ jobs:
displayName: Restore
inputs:
command: 'restore'
feedsToUse: config
nugetConfigPath: NuGet.Config.AzureArtifacts
projects: ${{ parameters.projectPath }}
verbosityRestore: 'Normal'
- task: DotNetCoreCLI@2
Expand Down
3 changes: 3 additions & 0 deletions Pipelines/templates/dotnet-publish-win-netcore-job.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ jobs:
pool:
vmImage: 'windows-latest'
steps:
- task: NuGetAuthenticate@1
- task: UseDotNet@2
displayName: Install Dotnet SDK
inputs:
Expand All @@ -56,6 +57,8 @@ jobs:
displayName: Restore
inputs:
command: 'restore'
feedsToUse: config
nugetConfigPath: NuGet.Config.AzureArtifacts
projects: ${{ parameters.projectPath }}
verbosityRestore: 'Normal'
- task: DotNetCoreCLI@2
Expand Down
3 changes: 3 additions & 0 deletions Pipelines/templates/dotnet-test-job.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ jobs:
pool:
vmImage: 'windows-latest'
steps:
- task: NuGetAuthenticate@1
- task: UseDotNet@2
displayName: Install Dotnet SDK
inputs:
Expand All @@ -35,6 +36,8 @@ jobs:
displayName: Dotnet Restore
inputs:
command: 'restore'
feedsToUse: config
nugetConfigPath: NuGet.Config.AzureArtifacts
projects: ${{ parameters.projectPath }}
verbosityRestore: 'Normal'
- task: DotNetCoreCLI@2
Expand Down
2 changes: 1 addition & 1 deletion Pipelines/templates/nbgv-set-version-steps.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
steps:
- script: 'dotnet tool install -g nbgv'
- script: 'dotnet tool update -g nbgv --configfile NuGet.Config.Public'
displayName: 'Install GitVersioning'
- task: PowerShell@2
displayName: Set Release Version
Expand Down
3 changes: 3 additions & 0 deletions Pipelines/templates/nuget-build-job.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ jobs:
pool:
vmImage: 'windows-latest'
steps:
- task: NuGetAuthenticate@1
- task: UseDotNet@2
displayName: Install Dotnet SDK
inputs:
Expand All @@ -47,6 +48,8 @@ jobs:
displayName: Dotnet Restore
inputs:
command: 'restore'
feedsToUse: config
nugetConfigPath: NuGet.Config.AzureArtifacts
projects: ${{ parameters.projectPath }}
verbosityRestore: 'Normal'
- task: DotNetCoreCLI@2
Expand Down
2 changes: 1 addition & 1 deletion Tools/Docker/AsaDetonatorLinux/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ubuntu:latest
FROM mcr.microsoft.com/mirror/docker/library/ubuntu:22.04

COPY Detonate.sh /Detonate.sh

Expand Down