Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/compose.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ const buildShell = (run, name, compose, opts = {}) => ({
* Run docker compose build
*/
exports.build = (compose, project, opts = {}) => {
return buildShell('build', project, compose, {pull: _.isEmpty(opts.local)});
return buildShell('build', project, compose, {pull: _.isEmpty(opts.local) || !_.isEmpty(opts.pullable)});
};

/*
Expand Down
6 changes: 2 additions & 4 deletions lib/router.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,8 @@ exports.eventWrapper = (name, daemon, events, data, run) => daemon.up()
* Helper to route to build command
*/
exports.build = (data, compose) => {
// Pull
return retryEach(data, datum => compose('pull', datum))
// then build
.then(() => retryEach(data, datum => compose('build', datum)));
// Build (with optional "--pull")
return retryEach(data, datum => compose('build', datum));
};

/*
Expand Down