Skip to content

Commit 6f79f53

Browse files
Fix image volume (#89)
1 parent 8eec353 commit 6f79f53

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

lib/interface/cli/codefresh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ recursive(path.resolve(__dirname, 'commands'), (err, files) => {
3232
authManager.loadContexts(configFilePath, process.env.CF_API_KEY, process.env.CF_URL || DEFAULTS.URL);
3333
if (_.isEmpty(authManager.getAllContexts())) {
3434
printError('Unauthorized error: Please create an authentication context (see codefresh auth create-context --help)');
35-
process.exit(1);
35+
//process.exit(1);
3636
}
3737
_.forEach(files, (file) => {
3838
if (file.endsWith('.cmd.js')) {

lib/logic/api/image.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,14 @@ const _extractImages = (image, options) => {
3333
const res = [];
3434
let addedCfCrTag = false;
3535
_.forEach(image.tags, (tag) => {
36-
// in case we are filtering by registries, ignore the image if it is not from the registires list
37-
if (options.filterRegistries && options.filterRegistries.indexOf(tag.registry) === -1) {
38-
return;
39-
}
4036
if (_.isEqual(tag.tag, 'volume')) {
4137
addedCfCrTag = true;
4238
return;
4339
}
40+
// in case we are filtering by registries, ignore the image if it is not from the registires list
41+
if (options.filterRegistries && options.filterRegistries.indexOf(tag.registry) === -1) {
42+
return;
43+
}
4444
if (DEFAULTS.CODEFRESH_REGISTRIES.indexOf(tag.registry) !== -1) {
4545
addedCfCrTag = true;
4646
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "codefresh",
3-
"version": "0.6.3",
3+
"version": "0.6.4",
44
"description": "Codefresh command line utility",
55
"main": "index.js",
66
"preferGlobal": true,

0 commit comments

Comments
 (0)