Skip to content

Commit

Permalink
Fix image volume (#89)
Browse files Browse the repository at this point in the history
  • Loading branch information
ziv-codefresh committed Jan 10, 2018
1 parent 8eec353 commit 6f79f53
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion lib/interface/cli/codefresh
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ recursive(path.resolve(__dirname, 'commands'), (err, files) => {
authManager.loadContexts(configFilePath, process.env.CF_API_KEY, process.env.CF_URL || DEFAULTS.URL);
if (_.isEmpty(authManager.getAllContexts())) {
printError('Unauthorized error: Please create an authentication context (see codefresh auth create-context --help)');
process.exit(1);
//process.exit(1);
}
_.forEach(files, (file) => {
if (file.endsWith('.cmd.js')) {
Expand Down
8 changes: 4 additions & 4 deletions lib/logic/api/image.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,14 @@ const _extractImages = (image, options) => {
const res = [];
let addedCfCrTag = false;
_.forEach(image.tags, (tag) => {
// in case we are filtering by registries, ignore the image if it is not from the registires list
if (options.filterRegistries && options.filterRegistries.indexOf(tag.registry) === -1) {
return;
}
if (_.isEqual(tag.tag, 'volume')) {
addedCfCrTag = true;
return;
}
// in case we are filtering by registries, ignore the image if it is not from the registires list
if (options.filterRegistries && options.filterRegistries.indexOf(tag.registry) === -1) {
return;
}
if (DEFAULTS.CODEFRESH_REGISTRIES.indexOf(tag.registry) !== -1) {
addedCfCrTag = true;
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "codefresh",
"version": "0.6.3",
"version": "0.6.4",
"description": "Codefresh command line utility",
"main": "index.js",
"preferGlobal": true,
Expand Down

0 comments on commit 6f79f53

Please sign in to comment.