How to set up a proxy

 steps:
   - name: clone
     image: alpine/git
     commands:
       - git config --global http.version HTTP/1.1
       - git clone https://github.com/xxxx.git .
 

How can i set proxy

export http_proxy=socks5://127.0.0.1:9999;

This way not working.