@@ -51,7 +51,7 @@ export async function init(
51
51
) ;
52
52
53
53
const ctr = baseCtr
54
- . withMountedCache ( "/app/.terraform" , dag . cacheVolume ( "terraform" ) , {
54
+ . withMountedCache ( "/app/.terraform" , dag . cacheVolume ( "terraform-example " ) , {
55
55
sharing : CacheSharingMode . Shared ,
56
56
} )
57
57
. withDirectory ( "/app" , context , { exclude } )
@@ -92,7 +92,7 @@ export async function validate(
92
92
. withDirectory ( "/app" , context , {
93
93
exclude,
94
94
} )
95
- . withMountedCache ( "/app/.terraform" , dag . cacheVolume ( "terraform" ) , {
95
+ . withMountedCache ( "/app/.terraform" , dag . cacheVolume ( "terraform-example " ) , {
96
96
sharing : CacheSharingMode . Shared ,
97
97
} )
98
98
. withWorkdir ( "/app" )
@@ -152,10 +152,10 @@ export async function plan(
152
152
) ;
153
153
154
154
const ctr = baseCtr
155
- . withMountedCache ( "/app/.terraform" , dag . cacheVolume ( "terraform" ) , {
155
+ . withMountedCache ( "/app/.terraform" , dag . cacheVolume ( "terraform-example " ) , {
156
156
sharing : CacheSharingMode . Shared ,
157
157
} )
158
- . withMountedCache ( "/app/plan" , dag . cacheVolume ( "tfplan" ) )
158
+ . withMountedCache ( "/app/plan" , dag . cacheVolume ( "tfplan-example " ) )
159
159
. withDirectory ( "/app" , context , {
160
160
exclude,
161
161
} )
@@ -216,10 +216,10 @@ export async function apply(
216
216
) ;
217
217
218
218
const ctr = baseCtr
219
- . withMountedCache ( "/app/.terraform" , dag . cacheVolume ( "terraform" ) , {
219
+ . withMountedCache ( "/app/.terraform" , dag . cacheVolume ( "terraform-example " ) , {
220
220
sharing : CacheSharingMode . Shared ,
221
221
} )
222
- . withMountedCache ( "/app/plan" , dag . cacheVolume ( "tfplan" ) , {
222
+ . withMountedCache ( "/app/plan" , dag . cacheVolume ( "tfplan-example " ) , {
223
223
sharing : CacheSharingMode . Shared ,
224
224
} )
225
225
. withDirectory ( "/app" , context , { exclude } )
@@ -253,7 +253,7 @@ export async function apply(
253
253
. pipeline ( "clear_plan" )
254
254
. container ( )
255
255
. from ( "alpine" )
256
- . withMountedCache ( "/app/plan" , dag . cacheVolume ( "tfplan" ) )
256
+ . withMountedCache ( "/app/plan" , dag . cacheVolume ( "tfplan-example " ) )
257
257
. withExec ( [ "sh" , "-c" , "rm -rf /app/plan/*" ] )
258
258
. stdout ( ) ;
259
259
0 commit comments