[SOLVED] TLS error during git clone in Docker runner

I’m trying to run a pipeline with the Docker runner from my Gitea instance. Everything works great until the pipeline tries to clone the remote repository:

Initialized empty Git repository in /drone/src/.git/
+ git fetch origin +refs/heads/master:
fatal: unable to access 'https://git.example.com/alanorth/repo.git/': error:1400442E:SSL routines:CONNECT_CR_SRVR_HELLO:tlsv1 alert protocol version

I have Gitea running behind an nginx reverse proxy with TLSv1.3. I can browse Gitea and clone the repository using git just fine.

Could this be related to this drone-git issue: Upgrade to alpine 3.12 to support TLS 1.3? Thanks.

Ah! Yes indeed, the drone/git image was just upgraded to Alpine 3.12 to support TLS 1.3. I pulled a new image and now my builds can clone.