Skip to content

Commit

Permalink
Add azure private nuget registry documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
filip-debricked committed Sep 4, 2024
1 parent 52060ea commit f55125f
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 0 deletions.
8 changes: 8 additions & 0 deletions examples/templates/Azure/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,11 @@ Some additional configuration may be required if you use private dependencies no
For maven your `.m2/settings.xml` needs to be configured for the specific registry you wish to use, see the [settings documentation](https://maven.apache.org/settings.html) for more details.
Using Azure Pipelines this can be done by commenting out the authentication step in the template.
More information about this can be found [here](https://learn.microsoft.com/en-us/azure/devops/pipelines/tasks/reference/maven-authenticate-v0?view=azure-pipelines).

## NuGet

Just like with maven you need to configure access to private registries or sources,
see [NuGet's documentation on source mapping](https://learn.microsoft.com/en-us/nuget/consume-packages/package-source-mapping) for more information
(and the [authenticated feeds documentation](https://learn.microsoft.com/en-us/nuget/consume-packages/consuming-packages-authenticated-feeds) for details).
When using Azure pipelines your authenticated feeds can be accessed by commenting out the NuGet parts in the default template
(see [nuget authenticate documentation](https://learn.microsoft.com/en-us/azure/devops/pipelines/tasks/reference/nuget-authenticate-v1?view=azure-pipelines) for more information).
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
jobs:
- job: debricked_scan
displayName: Debricked scan
pool:
vmImage: 'ubuntu-latest'
steps:
- task: NuGetAuthenticate@1
displayName: NuGet Authentication
- script: |
curl -LsS https://github.com/debricked/cli/releases/download/release-v2/cli_linux_x86_64.tar.gz | tar -xz debricked
./debricked scan
displayName: Debricked scan
env:
DEBRICKED_TOKEN: $(DEBRICKED_TOKEN)
3 changes: 3 additions & 0 deletions examples/templates/Azure/azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ jobs:
# inputs:
# artifactsFeeds: <your-private-repository-id>
# Uncomment the above lines if you need to authenticate private maven registries
# - task: NuGetAuthenticate@1
# displayName: NuGet Authentication
# Uncomment the above lines if you need to authenticate private nuget registries
- script: |
curl -LsS https://github.com/debricked/cli/releases/download/release-v2/cli_linux_x86_64.tar.gz | tar -xz debricked
./debricked scan
Expand Down

0 comments on commit f55125f

Please sign in to comment.