forked from github-starred/komodo
only push if docker account exits
This commit is contained in:
@@ -53,7 +53,7 @@ const Actions: Component<{}> = (p) => {
|
||||
</ConfirmButton>
|
||||
</Show>
|
||||
</Flex>
|
||||
<Flex class={combineClasses(s.Action, "shadow")}>
|
||||
{/* <Flex class={combineClasses(s.Action, "shadow")}>
|
||||
clone{" "}
|
||||
<ConfirmButton
|
||||
color="orange"
|
||||
@@ -63,7 +63,7 @@ const Actions: Component<{}> = (p) => {
|
||||
>
|
||||
<Icon type="arrow-down" />
|
||||
</ConfirmButton>
|
||||
</Flex>
|
||||
</Flex> */}
|
||||
</Grid>
|
||||
</Show>
|
||||
);
|
||||
|
||||
+2
-2
@@ -117,9 +117,9 @@ export async function dockerBuild(
|
||||
dockerfilePath ? ` -f ${dockerfilePath}` : ""
|
||||
} .`;
|
||||
|
||||
const push = `docker push ${join(username || "", imageName)}`;
|
||||
const push = username ? ` && docker push ${join(username, imageName)}` : "";
|
||||
|
||||
return await execute(`${cd} && ${build} && ${push}`);
|
||||
return await execute(`${cd} && ${build}${push}`);
|
||||
}
|
||||
|
||||
/* Docker Run */
|
||||
|
||||
Reference in New Issue
Block a user