Skip to content

Commit

Permalink
support compose on runner init on quay (#636)
Browse files Browse the repository at this point in the history
* support  compose on runner init on quay

* Revert "support  compose on runner init on quay"

This reverts commit ed8b82d.

* wip
  • Loading branch information
oren-codefresh authored Feb 25, 2021
1 parent 109bfae commit 66c6aae
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions lib/interface/cli/commands/hybrid/init.cmd.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ const {
const InstallationPlan = require('./InstallationPlan');
const { array } = require('yargs');

const defaultDockerRegistry = 'quay.io';
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')}`);

async function isNewAccount() {
Expand Down Expand Up @@ -148,9 +149,9 @@ const initCmd = new Command({
describe: 'Set a name of your custom storage class',
})
.option('docker-registry', {
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',
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}`,
type: 'string',
default: 'quay.io',
default: defaultDockerRegistry,
})
.option('kube-config-path', {
describe: 'Path to kubeconfig file (default is $HOME/.kube/config)',
Expand Down Expand Up @@ -580,7 +581,7 @@ const initCmd = new Command({
await sdk.runtimeEnvs.update({ name: reName }, _.merge(re, body));
console.log(`Runtime environment "${colors.cyan(reName)}" has been updated with the specified docker-registry images`);
},
condition: !!dockerRegistry,
condition: !!dockerRegistry && dockerRegistry !== defaultDockerRegistry,
});

// update env vars
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.75.6",
"version": "0.75.7",
"description": "Codefresh command line utility",
"main": "index.js",
"preferGlobal": true,
Expand Down

0 comments on commit 66c6aae

Please sign in to comment.