Merge pull request #6056 from owncloud/proxy-lint-steps

use a proxy for the golangci-lint step
This commit is contained in:
Michael Barz
2023-04-14 14:26:51 +02:00
committed by GitHub

View File

@@ -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],
},
{
@@ -1999,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],
},
]