From b779384e063b979a889601e61fc1d0b0d2124997 Mon Sep 17 00:00:00 2001 From: Neal Beeken Date: Thu, 23 May 2024 14:38:39 -0400 Subject: [PATCH] chore: fix path --- .github/docker/Dockerfile.glibc | 5 ++--- .github/scripts/build_linux.mjs | 9 ++++++++- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/docker/Dockerfile.glibc b/.github/docker/Dockerfile.glibc index 5b801e3..c114db0 100644 --- a/.github/docker/Dockerfile.glibc +++ b/.github/docker/Dockerfile.glibc @@ -4,9 +4,8 @@ FROM $NODE_BUILD_IMAGE AS build WORKDIR /mongodb-client-encryption COPY . . -RUN node ./.github/scripts/libmongocrypt.mjs -RUN mkdir -p /out && cp -R /mongodb-client-encryption/prebuilds/ /out +RUN node /mongodb-client-encryption/.github/scripts/libmongocrypt.mjs FROM scratch -COPY --from=build /out / +COPY --from=build /mongodb-client-encryption/prebuilds/ / diff --git a/.github/scripts/build_linux.mjs b/.github/scripts/build_linux.mjs index cc204a5..45562d8 100644 --- a/.github/scripts/build_linux.mjs +++ b/.github/scripts/build_linux.mjs @@ -44,11 +44,18 @@ async function main() { '--platform', 'linux/s390x,linux/arm64,linux/amd64', '--output', - 'type=local,dest=.,platform-split=false', + 'type=local,dest=./prebuilds,platform-split=false', '-f', resolveRoot('./.github/docker/Dockerfile.glibc'), resolveRoot('.') ]); + + /** + * Running locally and want a fresh start? + * + * docker buildx prune --force + * docker buildx rm builder + */ } await main();