great-sunset-355
12/06/2023, 1:52 PMpulumi install
in bash.
Ideally I'd like to be able to make a list of required plugins before downloading.
Thank youlimited-rainbow-51650
12/06/2023, 3:46 PMPULUMI_HOME
(see docs).
Once PULUMI_HOME
points to such a cache folder, it will fill at first run and Pulumi will pick up matching plugin versions afterwards and no longer download them.great-sunset-355
12/06/2023, 4:54 PMPULUMI_HOME
is not the problem.
What I am not sure about is that if Github can incrementally build this cache from multiple jobs.
my projects run in parallel and they often have slightly different deps.
I am not sure what to use as a cache key.
On a small scale, I just ran pulumi install
for each project in a separate job.
build cache (pulumi install)
-> parallel [pulumi up <project>
]
the problem with this approach that pulumi install
step may take ages to complete.
Ultimately the question is, what to choose as a cache key
.
In my simple monorepo case I went with package.lock
but if I use this in parallel job it will probably override the cachedry-keyboard-94795
12/06/2023, 5:17 PMpulumi install
, then save cache with a key made up of all lockfiles.
The job should run periodically, and whenever the lockfiles change.
Then your individual jobs can load the central cache.dry-keyboard-94795
12/06/2023, 5:33 PMdry-keyboard-94795
12/06/2023, 5:41 PMgreat-sunset-355
12/06/2023, 7:15 PMdry-keyboard-94795
12/06/2023, 7:21 PMgreat-sunset-355
12/07/2023, 5:40 AMpulumi-lib=workflow producer
-> app project = workflow consumer
dry-keyboard-94795
12/07/2023, 7:28 AMgreat-sunset-355
12/07/2023, 7:36 AMdry-keyboard-94795
12/07/2023, 7:37 AMgreat-sunset-355
12/07/2023, 7:45 AM