Skip to content

Commit

Permalink
Maybe fixing linter error
Browse files Browse the repository at this point in the history
  • Loading branch information
hatemosphere committed Oct 6, 2023
1 parent 4e93674 commit 623f48b
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions infrastructure/zk/src/docker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ function defaultTagList(image: string, imageTagSha: string, imageTagShaTS: strin
}

async function _build(image: string, tagList: string[]) {
if (image == 'server-v2' || image == 'external-node' || image == 'prover') {
if (image === 'server-v2' || image === 'external-node' || image === 'prover') {
await contract.build();
}

Expand All @@ -104,10 +104,14 @@ async function _build(image: string, tagList: string[]) {
// For prover-v2 which is not a prover, but should be built from the prover dockerfile. So here we go.
const imagePath = image == 'prover-v2' ? 'prover' : image;

// build image with needed tags
await utils.spawn(`DOCKER_BUILDKIT=1 docker build ${tagsToBuild} -f ./docker/${imagePath}/Dockerfile .`);
const buildCommand = `DOCKER_BUILDKIT=1 docker build ${tagsToBuild}` +
(buildArgs ? ` ${buildArgs}` : '') +
` -f ./docker/${imagePath}/Dockerfile .`;

await utils.spawn(buildCommand);
}


async function _push(image: string, tagList: string[], publishPublic: boolean = false) {
// For development purposes, we want to use `2.0` tags for 2.0 images, just to not interfere with 1.x

Expand Down

0 comments on commit 623f48b

Please sign in to comment.