Skip to content

Commit 1741676

Browse files
committed
update example
1 parent dd64e01 commit 1741676

File tree

1 file changed

+7
-7
lines changed
  • example/.fluentci/src/dagger

1 file changed

+7
-7
lines changed

example/.fluentci/src/dagger/jobs.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export async function init(
5151
);
5252

5353
const ctr = baseCtr
54-
.withMountedCache("/app/.terraform", dag.cacheVolume("terraform"), {
54+
.withMountedCache("/app/.terraform", dag.cacheVolume("terraform-example"), {
5555
sharing: CacheSharingMode.Shared,
5656
})
5757
.withDirectory("/app", context, { exclude })
@@ -92,7 +92,7 @@ export async function validate(
9292
.withDirectory("/app", context, {
9393
exclude,
9494
})
95-
.withMountedCache("/app/.terraform", dag.cacheVolume("terraform"), {
95+
.withMountedCache("/app/.terraform", dag.cacheVolume("terraform-example"), {
9696
sharing: CacheSharingMode.Shared,
9797
})
9898
.withWorkdir("/app")
@@ -152,10 +152,10 @@ export async function plan(
152152
);
153153

154154
const ctr = baseCtr
155-
.withMountedCache("/app/.terraform", dag.cacheVolume("terraform"), {
155+
.withMountedCache("/app/.terraform", dag.cacheVolume("terraform-example"), {
156156
sharing: CacheSharingMode.Shared,
157157
})
158-
.withMountedCache("/app/plan", dag.cacheVolume("tfplan"))
158+
.withMountedCache("/app/plan", dag.cacheVolume("tfplan-example"))
159159
.withDirectory("/app", context, {
160160
exclude,
161161
})
@@ -216,10 +216,10 @@ export async function apply(
216216
);
217217

218218
const ctr = baseCtr
219-
.withMountedCache("/app/.terraform", dag.cacheVolume("terraform"), {
219+
.withMountedCache("/app/.terraform", dag.cacheVolume("terraform-example"), {
220220
sharing: CacheSharingMode.Shared,
221221
})
222-
.withMountedCache("/app/plan", dag.cacheVolume("tfplan"), {
222+
.withMountedCache("/app/plan", dag.cacheVolume("tfplan-example"), {
223223
sharing: CacheSharingMode.Shared,
224224
})
225225
.withDirectory("/app", context, { exclude })
@@ -253,7 +253,7 @@ export async function apply(
253253
.pipeline("clear_plan")
254254
.container()
255255
.from("alpine")
256-
.withMountedCache("/app/plan", dag.cacheVolume("tfplan"))
256+
.withMountedCache("/app/plan", dag.cacheVolume("tfplan-example"))
257257
.withExec(["sh", "-c", "rm -rf /app/plan/*"])
258258
.stdout();
259259

0 commit comments

Comments
 (0)