-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
use project name to name docker image and iexec app #69
base: main
Are you sure you want to change the base?
Conversation
@@ -38,6 +43,8 @@ export async function deploy() { | |||
throw Error('Invalid version'); | |||
} | |||
|
|||
const imageTag = `${dockerhubUsername}/${projectNameToImageName(projectName)}:${iAppVersion}`; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
moved up because it can throw and its always good to throw early
// Read package.json file | ||
export async function readPackageJonConfig() { | ||
try { | ||
const packageContent = await readFile('./package.json', 'utf8'); | ||
return JSON.parse(packageContent); | ||
} catch { | ||
throw Error('Failed to read `package.json` file.'); | ||
} | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
get rid of JS template specific code 🎉
return fromError(e) | ||
.details.map((issue) => issue.message) | ||
.join('; '); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would have preferred something simpler but didn't manage to achieve it without printing Validation error
. Open for suggestions
use project name to name docker image and iexec app
package.json
(JS specific) withprojectName
defined iniapp.cof.json