Environment variables in NuGet.config together with Docker build in Azure Pipelines #4282
Unanswered
danielhertzman
asked this question in
Q&A
Replies: 1 comment
-
Hello :) Few suggestions:
I hope this may help you. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello!
I'm attempting to use Nuget.config to authenticate towards our own artifact feed in Azure DevOps during Docker build job. I follow the instructions given here: https://learn.microsoft.com/en-us/nuget/reference/nuget-config-file#nugetconfig-environment-variable-support
Here is our NuGet.config:
This is how our Dockerfile looks like:
Here is our Docker build task. Password and UserName variables comes from a variable group and we have verified that we get the values.
When we run the Docker build task, we get
Unable to load the service index for source
.Anyone who maybe knows what we're doing wrong?
Beta Was this translation helpful? Give feedback.
All reactions