only push if docker account exits

This commit is contained in:
mbecker20
2022-03-31 01:01:29 -07:00
parent c0ffcacc4e
commit b810e38bb0
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -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
View File
@@ -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 */