maxheld83 / ghactions

GitHub actions for R and accompanying R package
https://www.maxheld.de/ghactions/
MIT License
169 stars 17 forks source link

get installation artefacts out of images #191

Open maxheld83 opened 5 years ago

maxheld83 commented 5 years ago

I think the images currently get slightly bloated because the installation artefacts (sources) also get added in the layer, even though that's not really necessary.

This might also happen upstream #166 and may require multi-stage builds #129

maxheld83 commented 5 years ago

it's not clear that this affects install.packages(), because that cleans up after itself.

it might affect apt-get calls (not sure).

This does for sure happen when we bake ghactions into the actions, because the entire source becomes part of the build context, and the source currently remains at /ghactions in all downstream containers.

Not a huge size issue, but a bit unclean, so might be nice to isolate this.