Skip to content

Commit 66c6aae

Browse files
support compose on runner init on quay (#636)
* support compose on runner init on quay * Revert "support compose on runner init on quay" This reverts commit ed8b82d. * wip
1 parent 109bfae commit 66c6aae

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

lib/interface/cli/commands/hybrid/init.cmd.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ const {
3838
const InstallationPlan = require('./InstallationPlan');
3939
const { array } = require('yargs');
4040

41+
const defaultDockerRegistry = 'quay.io';
4142
const handleError = createErrorHandler(`\nIf you had any issues with the installation please report them at: ${colors.blue('https://github.com/codefresh-io/cli/issues/new')}`);
4243

4344
async function isNewAccount() {
@@ -148,9 +149,9 @@ const initCmd = new Command({
148149
describe: 'Set a name of your custom storage class',
149150
})
150151
.option('docker-registry', {
151-
describe: 'The prefix for the container registry that will be used for pulling the required components images. Example: --docker-registry="docker.io" default is quay.io',
152+
describe: `The prefix for the container registry that will be used for pulling the required components images. Example: --docker-registry="docker.io" default is ${defaultDockerRegistry}`,
152153
type: 'string',
153-
default: 'quay.io',
154+
default: defaultDockerRegistry,
154155
})
155156
.option('kube-config-path', {
156157
describe: 'Path to kubeconfig file (default is $HOME/.kube/config)',
@@ -580,7 +581,7 @@ const initCmd = new Command({
580581
await sdk.runtimeEnvs.update({ name: reName }, _.merge(re, body));
581582
console.log(`Runtime environment "${colors.cyan(reName)}" has been updated with the specified docker-registry images`);
582583
},
583-
condition: !!dockerRegistry,
584+
condition: !!dockerRegistry && dockerRegistry !== defaultDockerRegistry,
584585
});
585586

586587
// update env vars

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.75.6",
3+
"version": "0.75.7",
44
"description": "Codefresh command line utility",
55
"main": "index.js",
66
"preferGlobal": true,

0 commit comments

Comments
 (0)