Add more cache-to arguments
This commit is contained in:
parent
891ad1be6a
commit
89fc01152e
10
.drone.yml
10
.drone.yml
@ -12,12 +12,18 @@ steps:
|
||||
image: thegeeklab/drone-docker-buildx # Absurd that this isn't offered as first-party!
|
||||
privileged: true
|
||||
settings:
|
||||
# Consider testing with this if the cache-to arguments don't help!
|
||||
# args:
|
||||
# - BUILDKIT_INLINE_CACHE=1
|
||||
cache_from:
|
||||
- "type=registry\\\\,ref=gitea.scubbo.org/${DRONE_REPO}:${DRONE_BRANCH}"
|
||||
- "gitea.scubbo.org/${DRONE_REPO}:${DRONE_BRANCH}"
|
||||
cache_to:
|
||||
# https://docs.docker.com/build/cache/backends/registry/
|
||||
# `mode=max` necessary in order to cache intermediate stages
|
||||
- "type=registry,ref=gitea.scubbo.org/${DRONE_REPO}:${DRONE_BRANCH},mode=max"
|
||||
#
|
||||
# https://github.com/go-gitea/gitea/issues/28973#issuecomment-1961859655
|
||||
# Some parameters are necessary in order to make the push to gitea succeed
|
||||
- "type=registry,ref=gitea.scubbo.org/${DRONE_REPO}:${DRONE_BRANCH},mode=max,image-manifest=true,oci-mediatypes=true"
|
||||
registry: gitea.scubbo.org
|
||||
username: scubbo
|
||||
password:
|
||||
|
Loading…
x
Reference in New Issue
Block a user