drone untrusted repositories cannot mount host volumes解決方案

Drone untrusted repositories cannot mount host volumes解決方案

直接原因

我在定義 drone.yml 中添加了 volumes 嘗試使用掛載時出現該問題,去掉之後則無該問題

volumes:
- name: mvnCache
  host:
    path: /tmp/cache/.m2

根本原因

登錄 drone 的用戶不是管理員或者在 SETTINGS 的 Main 部分,未勾選 Trusted

在這裏插入圖片描述

如果你的這個頁面沒有 Trusted,像這樣

在這裏插入圖片描述
請先解決 Drone SETTINGS 頁面沒有 Trusted

解決方案

以管理員身份登錄drone,在項目設置中勾選 Trusted

參考:StackOverflowdrone 社區

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章