Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow use in job to reference image:pull #160

Open
Fuco1 opened this issue Feb 3, 2019 · 2 comments
Open

Allow use in job to reference image:pull #160

Fuco1 opened this issue Feb 3, 2019 · 2 comments

Comments

@Fuco1
Copy link
Contributor

Fuco1 commented Feb 3, 2019

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
Copy link
Owner

dnephin commented Feb 16, 2019

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

@Fuco1
Copy link
Contributor Author

Fuco1 commented Feb 16, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants