From da62451a979c9d84baa41b5ecde955b0f4396a3f Mon Sep 17 00:00:00 2001 From: Michael Barz Date: Fri, 14 Apr 2023 13:25:26 +0200 Subject: [PATCH 1/2] use a proxy for the golangci-lint step --- .drone.star | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.drone.star b/.drone.star index e23aaca51f..ee510b7a0b 100644 --- a/.drone.star +++ b/.drone.star @@ -477,6 +477,14 @@ def testOcisModule(ctx, module): "make -C %s ci-golangci-lint" % (module), "mv %s/checkstyle.xml cache/checkstyle/$(basename %s)_checkstyle.xml" % (module, module), ], + "environment": { + "HTTP_PROXY": { + "from_secret": "drone_http_proxy", + }, + "HTTPS_PROXY": { + "from_secret": "drone_http_proxy", + }, + }, "volumes": [stepVolumeGo], }, { From dcd8b4e1b48ce85805c0fd11ee247196e316a21b Mon Sep 17 00:00:00 2001 From: Michael Barz Date: Fri, 14 Apr 2023 13:37:32 +0200 Subject: [PATCH 2/2] use a proxy for the go-generate step --- .drone.star | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.drone.star b/.drone.star index ee510b7a0b..2cdbe6eeaa 100644 --- a/.drone.star +++ b/.drone.star @@ -2007,6 +2007,14 @@ def makeGoGenerate(module): "commands": [ "retry -t 3 '%s ci-go-generate'" % (make), ], + "environment": { + "HTTP_PROXY": { + "from_secret": "drone_http_proxy", + }, + "HTTPS_PROXY": { + "from_secret": "drone_http_proxy", + }, + }, "volumes": [stepVolumeGo], }, ]