diff --git a/frontend/src/components/builds/Actions.tsx b/frontend/src/components/builds/Actions.tsx index 5e0c4a949..7be74d94a 100644 --- a/frontend/src/components/builds/Actions.tsx +++ b/frontend/src/components/builds/Actions.tsx @@ -53,7 +53,7 @@ const Actions: Component<{}> = (p) => { - + {/* clone{" "} = (p) => { > - + */} ); diff --git a/util/docker.ts b/util/docker.ts index 695635bce..9526bacdc 100644 --- a/util/docker.ts +++ b/util/docker.ts @@ -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 */