Commit graph

5 commits

Author SHA1 Message Date
Sas Swart
82c856094e
feat: add build secrets option ()
* feat: add build secrets option

* make gen and fix tests
2025-01-16 11:39:38 +02:00
Danielle Maywood
6795af2ba1
feat: support ENVBUILDER_GIT_SSH_PRIVATE_KEY_BASE64 () 2024-10-30 14:15:44 +00:00
Cian Johnston
4077a87dca
fix: set MagicDir to tempdir when performing cache probe ()
* fix: set MagicDir to tempdir when performing cache probe

* chore: update envbuilder to b7781d8

* imgutil: get default envbuilder binary path from envbuilder options
2024-09-10 09:47:39 +01:00
Cian Johnston
482a446eb3
chore(internal/provider): refactor cached_image_resource ()
Addresses some non-blocking comments from :

- Extracts some of the functions in cached_image_resource.go to separate internal packages tfutil and imgutil.
- Some other functions are extracted to helpers.go.
- Extracts non-overridable flags to a package-level variable.
- Pre-allocates some slices where possible.
- Removes some unused code and renames some existing code for readability
2024-09-04 16:29:25 +01:00
Cian Johnston
23f2cf5f48
fix(internal/provider): correctly override from extra_env ()
Relates to 

Our previous logic did not pass options from extra_env to envbuilder.RunCacheProbe.
This fixes the logic and adds more comprehensive tests around the overriding logic.
Future commits will refactor this logic some more.
2024-09-04 11:19:25 +01:00