Skip to content

Commit

Permalink
log cache
Browse files Browse the repository at this point in the history
  • Loading branch information
tsirysndr committed Oct 15, 2023
1 parent 4b9d8b6 commit 9aee653
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions example/.fluentci/src/dagger/jobs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
});
Expand All @@ -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"]);
Expand Down

0 comments on commit 9aee653

Please sign in to comment.