fix: pass proxy variables to kaniko to fix composer timeout
This commit is contained in:
@@ -5,6 +5,8 @@ stages:
|
|||||||
variables:
|
variables:
|
||||||
NEXUS_PUSH_REGISTRY: "10.15.39.186:8082"
|
NEXUS_PUSH_REGISTRY: "10.15.39.186:8082"
|
||||||
IMAGE_NAME: "eosbpkd/sidata"
|
IMAGE_NAME: "eosbpkd/sidata"
|
||||||
|
http_proxy: "http://10.15.39.186:8081"
|
||||||
|
https_proxy: "http://10.15.39.186:8081"
|
||||||
|
|
||||||
build_image:
|
build_image:
|
||||||
stage: build
|
stage: build
|
||||||
@@ -21,6 +23,8 @@ build_image:
|
|||||||
--dockerfile $CI_PROJECT_DIR/Dockerfile
|
--dockerfile $CI_PROJECT_DIR/Dockerfile
|
||||||
--destination $NEXUS_PUSH_REGISTRY/$IMAGE_NAME:$CI_COMMIT_SHA
|
--destination $NEXUS_PUSH_REGISTRY/$IMAGE_NAME:$CI_COMMIT_SHA
|
||||||
--destination $NEXUS_PUSH_REGISTRY/$IMAGE_NAME:latest
|
--destination $NEXUS_PUSH_REGISTRY/$IMAGE_NAME:latest
|
||||||
|
--build-arg http_proxy=$http_proxy
|
||||||
|
--build-arg https_proxy=$https_proxy
|
||||||
--insecure
|
--insecure
|
||||||
--skip-tls-verify
|
--skip-tls-verify
|
||||||
only:
|
only:
|
||||||
|
|||||||
Reference in New Issue
Block a user