Docker ARGs not working in Azure Pipeline Docker build

Steve Brush 1 Reputation point
2022-10-17T17:45:17.087+00:00

I am having a basic issue which I haven't been able to explain. Passing arguments to an Azure Pipeline doesn't seem to work. They consistently show as null. I've simplified my Dockerfile as much as possible just for demonstration and it still doesn't work, even with a default value for the ARG.

  • This was originallly part of a Build and Push task which I have separated
  • This originally used an alpine base image but I have switched to Ubuntu
  • I've tried setting different Shells as active
  • This works as expected with a local build of the Dockerfile

251188-image.png

In all cases the output of the variable is null.

Any ideas?

Developer technologies | .NET | Other
0 comments No comments
{count} votes

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.