renovatebot / renovate

Home of the Renovate CLI: Cross-platform Dependency Automation by Mend.io
https://mend.io/renovate
GNU Affero General Public License v3.0
17.6k stars 2.32k forks source link

Cache our docker intermediate layer to speedup builds #5439

Closed viceice closed 4 years ago

viceice commented 4 years ago

We should use the caching feature of docker buildx to reuse build layers which do not have changes.

To get started we need

After these steps we can enable build caching in our github workflows

when we want to start to deploy release docker images

rarkins commented 4 years ago

New docker hub repo: renovate/cache-test

New docker hub deploy account: renovaterelease

Added both the new account and kriese with read-write team permissions to renovate/cache-test

Added Docker Hub user renovaterelease access token into Actions secret DOCKER_RENOVATERELEASE_TOKEN

viceice commented 4 years ago

refactored the docker workflows. Now we can merge to master and test.

If it is working fine we need more steps to do

rarkins commented 4 years ago

@ViceIce can this now be closed?

viceice commented 4 years ago

no, i will try to use github file cache, so we don't need to push the cache to dockerhub