From 89fc01152eb9de7da6e93a9ec2f3430cb94e2565 Mon Sep 17 00:00:00 2001 From: Jack Jackson Date: Mon, 1 Jul 2024 23:19:04 -0700 Subject: [PATCH] Add more cache-to arguments --- .drone.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index d617416..4a34340 100644 --- a/.drone.yml +++ b/.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: