We have a setup of Drone deployed into an Azure AKS cluster using the K8S runner and we’d like to attach external volumes into the pipelines so we can offload the caching of build artifacts (i.e. dependencies) into an Azure FileShare.
We have already configured the appropriate persistent volume claims to allow Kubernetes to mount the Azure File Share as a volume into the pods that request it, so, for example, we can mount that storage into a
/opt/drone/cache folder in the Drone Runner using
Then we configure the pipelines to use the previously mentioned folder from the host using
kind: pipeline type: kubernetes name: default steps: - name: build image: ... volumes: - name: cache path: /root/.ivy2 # This is where Scala's SBT stores the dependencies volumes: - name: cache host: path: /opt/drone/cache
When the build kicks in and completes, we expect being able to see the cached artifacts in the Azure Storage, however we see the storage being empty. Which makes us think that Drone is not mounting the mentioned volume into the pipeline pod.
If we configure the extra volume mounts in the drone server deployment, notice the same thing.
How should we configure the Drone deployment so we can do that? Does this need to go in the runner policy instead or is not possible to do right now?