Add more cache-to arguments

This commit is contained in:
Jack Jackson 2024-07-01 23:19:04 -07:00
parent 891ad1be6a
commit 89fc01152e

View File

@ -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: