This PR adds modifications to the spack-stack Dockerfile creation script and the CI workflow definition that allow pushing of spack binaries to a binary build cache stored an AWS S3 bucket. This relies on a completed build in order for binaries to be pushed to the cache. However, once they are there, it will speed building of spack-stack container by orders of magnitude. The modifications add a template that can be used in conjunction with github secrets to configure the mirror in the container at build time. The CI and Dockerfile make use of the mirror for pushing packages and using it for retrieving ones already built.
This PR adds modifications to the spack-stack Dockerfile creation script and the CI workflow definition that allow pushing of spack binaries to a binary build cache stored an AWS S3 bucket. This relies on a completed build in order for binaries to be pushed to the cache. However, once they are there, it will speed building of spack-stack container by orders of magnitude. The modifications add a template that can be used in conjunction with github secrets to configure the mirror in the container at build time. The CI and Dockerfile make use of the mirror for pushing packages and using it for retrieving ones already built.