Hello! I’ve been wanting to upgrade to 1.0.0-rc.4 and tried to change everything accordingly like adding
DRONE_GIT_PASSWORD with a set of credentials I created for drone in Gogs and toggling
DRONE_GIT_ALWAYS_AUTH=true. I’m still getting this however:
Initialized empty Git repository in /drone/src/.git/ + git fetch origin +refs/heads/master: fatal: could not read Username for 'https://git.mydomain.com': No such device or address
Maybe it’s something related to using HTTPS instead of SSH, which I’m avoiding since Gogs recommends using HTTPS when using its docker image.
Previously, I used drone 0.6.x, and it did work, but I’m not looking forward into downgrading.
I looked into the sqlite database and saw that the repository wasn’t marked as private, so I did it manually (updating the row to have
repo_private = 1 and
repo_visilibity = private) but still no luck. I may be missing some environment variable, I currently have these set:
DRONE_SERVER_PROTO=https DRONE_SERVER_HOST=ci.mydomain.com DRONE_GOGS_SERVER=https://git.mydomain.com DRONE_RUNNER_CAPACITY=2 DRONE_GIT_ALWAYS_AUTH=true DRONE_GIT_USERNAME=drone DRONE_GIT_PASSWORD=hunter2
I’m also running it on single-machine, I don’t know if running a drone-runner instead would work.
Ah, and gogs is 0.11.79, I updated it to the latest, just in case.