Closed tetchel closed 3 years ago
I am adding BUILDAH_LAYERS=true
to the buildah runner dockerfile, but if --layers=false
is passed to this action then the env var will get overridden.
So if layers
is not set, do not pass --layers
at all, to leave it up to the environment.
Okay :+1:
The --layers option is useful in buildah when given a persistent disk, but not useful in CI systems where the disk is discarded after each job
Since we've verified this option allows caching to work in the self-hosted buildah runner we should add an input for it
To keep with buildah behaviour, it should be false by default.
In addition, it may make sense to set
export BUILDAH_LAYERS=true
into the runner.