From 6f79f53faed64304573eda2a3084a5f8629dc7bc Mon Sep 17 00:00:00 2001 From: ziv-codefresh <32479607+ziv-codefresh@users.noreply.github.com> Date: Wed, 10 Jan 2018 10:50:16 +0200 Subject: [PATCH] Fix image volume (#89) --- lib/interface/cli/codefresh | 2 +- lib/logic/api/image.js | 8 ++++---- package.json | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/interface/cli/codefresh b/lib/interface/cli/codefresh index bb3d4751e..493b79bed 100755 --- a/lib/interface/cli/codefresh +++ b/lib/interface/cli/codefresh @@ -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')) { diff --git a/lib/logic/api/image.js b/lib/logic/api/image.js index 4efc3c209..654ff036b 100644 --- a/lib/logic/api/image.js +++ b/lib/logic/api/image.js @@ -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; } diff --git a/package.json b/package.json index 38a5059ad..5dc5ddd74 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "codefresh", - "version": "0.6.3", + "version": "0.6.4", "description": "Codefresh command line utility", "main": "index.js", "preferGlobal": true,