ci: improve caching in docker
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Glenn Y. Rolland 2024-07-08 22:09:58 +02:00
parent 6253e3138e
commit e8422180c4

View file

@ -41,7 +41,9 @@ steps:
from_secret: DOCKERHUB_USERNAME from_secret: DOCKERHUB_USERNAME
password: password:
from_secret: DOCKERHUB_PASSWORD from_secret: DOCKERHUB_PASSWORD
cache_from: "glenux/service-nextcloud:latest_${DRONE_BRANCH/\\//-}" cache_from:
- "glenux/service-nextcloud:${DRONE_COMMIT_SHA:0:8}"
- "glenux/service-nextcloud:latest_${DRONE_BRANCH/\\//-}"
repo: glenux/service-nextcloud repo: glenux/service-nextcloud
tags: "latest_${DRONE_BRANCH/\\//-}" tags: "latest_${DRONE_BRANCH/\\//-}"
purge: false purge: false
@ -60,7 +62,9 @@ steps:
from_secret: DOCKERHUB_USERNAME from_secret: DOCKERHUB_USERNAME
password: password:
from_secret: DOCKERHUB_PASSWORD from_secret: DOCKERHUB_PASSWORD
cache_from: "glenux/service-nextcloud:latest_${DRONE_BRANCH/\\//-}" cache_from:
- "glenux/service-nextcloud:${DRONE_COMMIT_SHA:0:8}"
- "glenux/service-nextcloud:latest_${DRONE_BRANCH/\\//-}"
repo: glenux/service-nextcloud repo: glenux/service-nextcloud
tags: latest tags: latest
purge: false purge: false