From 9aee6536a0d27ccf989208c33a57fb3cd8dd3607 Mon Sep 17 00:00:00 2001 From: Tsiry Sandratraina Date: Sun, 15 Oct 2023 03:00:01 +0000 Subject: [PATCH] log cache --- example/.fluentci/src/dagger/jobs.ts | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/example/.fluentci/src/dagger/jobs.ts b/example/.fluentci/src/dagger/jobs.ts index 7c54490..adbb9be 100644 --- a/example/.fluentci/src/dagger/jobs.ts +++ b/example/.fluentci/src/dagger/jobs.ts @@ -45,7 +45,8 @@ export const init = async ( .withWorkdir("/app") .withExec(["ls", "-ltra", ".", ".terraform"], { skipEntrypoint: true }) .withExec(["version"]) - .withExec(["init"]); + .withExec(["init"]) + .withExec(["ls", "-ltra", ".", ".terraform"], { skipEntrypoint: true }); await ctr.stdout(); }); @@ -66,12 +67,14 @@ export const validate = async (src = ".", tfVersion?: string) => { ); const ctr = baseCtr - .withMountedCache("/app/.terraform", client.cacheVolume("terraform"), { - sharing: CacheSharingMode.Shared, - }) .withDirectory("/app", context, { exclude, }) + .withExec(["ls", "-ltra", ".", ".terraform"], { skipEntrypoint: true }) + .withMountedCache("/app/.terraform", client.cacheVolume("terraform"), { + sharing: CacheSharingMode.Shared, + }) + .withExec(["ls", "-ltra", ".", ".terraform"], { skipEntrypoint: true }) .withWorkdir("/app") .withExec(["version"]) .withExec(["validate"]);