Skip to content

Instantly share code, notes, and snippets.

@travishsu
Last active November 12, 2021 07:54
Show Gist options
  • Save travishsu/8c63f168ecffd42356f2aaf1d99d8ca8 to your computer and use it in GitHub Desktop.
Save travishsu/8c63f168ecffd42356f2aaf1d99d8ca8 to your computer and use it in GitHub Desktop.
[[runners]]
pre_build_script = "mkdir -p $HOME/.docker/ && echo \"{ \\\"proxies\\\": { \\\"default\\\": { \\\"httpProxy\\\": \\\"$HTTP_PROXY\\\", \\\"httpsProxy\\\": \\\"$HTTPS_PROXY\\\", \\\"noProxy\\\": \\\"$NO_PROXY\\\" } } }\" > $HOME/.docker/config.json"
pre_clone_script = "git config --global http.proxy $HTTP_PROXY; git config --global https.proxy $HTTPS_PROXY"
environment = ["https_proxy=http://docker0_interface_ip:3128", "http_proxy=http://docker0_interface_ip:3128", "HTTPS_PROXY=docker0_interface_ip:3128", "HTTP_PROXY=docker0_interface_ip:3128"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment