中国国内からのアップグレードがgitの問題で失敗

HTTPプロキシ設定を追加しても問題が発生した場合、

GnuTLS recv error (-110): The TLS connection was non-properly terminated.

元のソリューションに加えて、テンプレートに以下のpostBufferプロパティを追加すると問題が解決します。gnutls-binのインストールが必要です。

hooks:
  before_code:
    - exec:
       cmd:
         - apt-get update -y
         - apt-get install -y gnutls-bin
         - git config --global http.proxy socks5://172.17.0.1:1080
         - git config --global https.proxy socks5://172.17.0.1:1080
         - git config --global https.sslVerify false
         - git config --global http.postBuffer 1048576000

# optional
  after_code:
    - exec:
       cmd:
         - git config --global --unset http.proxy
         - git config --global --unset https.proxy
         - git config --global --unset https.sslVerify
         - git config --global --unset http.postBuffer
「いいね!」 2