dnephin / dobi

A build automation tool for Docker applications
https://dnephin.github.io/dobi/
Apache License 2.0
309 stars 36 forks source link

Allow `use` in job to reference image:pull #160

Open Fuco1 opened 5 years ago

Fuco1 commented 5 years ago

I have an image definition with both pull and context. This seems to work fine so long as I use dobi img:pull or dobi img:build on the CLI.

However having a job with use: img always builds. I want to pull the image for the jobs and use the build configuration on CI to build the image.

Currently it seems I have to include two image resources. This is not ideal as the tags/names etc. need to be duplicated.

dnephin commented 5 years ago

It might be possible by setting img:pull as a dependency of the job, but I haven't tried it.

Fuco1 commented 5 years ago

I haven't tried it as a dependency, I'll check it out.