Enrique Benito Casado
Enrique Benito Casado

Reputation: 2080

Docker pull in pipeline from azure DevOps?

In azure devops among all the Docker task, its not include the "pull" ( I dont know why ). How would be the correct way to do a docker pull to my repository. I m using the following code the image its being pull but I dot know where the image is pulled.

- bash: |
     echo "pulling image: "$(imageName)
     docker pull $(imageName)
  displayName: "Docker pull"

There its not another way to do that inside a docker task ?

Thanks in advance

Upvotes: 2

Views: 8400

Answers (1)

Nadhir Falta
Nadhir Falta

Reputation: 5267

You can always log $(Build.SourcesDirectory)
and you can also specify the build source like this:

 - script:  docker pull $(imageName)
   workingDirectory: $(Build.SourcesDirectory)/front-end/myAppFront/
   displayName: 'Docker Pull'

Upvotes: 3

Related Questions