Fix: bypass helper SSL check using manual git clone
This commit is contained in:
+11
-1
@@ -3,7 +3,7 @@ stages:
|
||||
- deploy
|
||||
|
||||
variables:
|
||||
GIT_SSL_NO_VERIFY: "true" # Bypass SSL check saat Runner fetch source code
|
||||
GIT_STRATEGY: none # Matikan auto-clone bawaan runner helper yang error TLS
|
||||
IMAGE: 10.15.39.186:8083/eosbpkd/sidata
|
||||
TAG: $CI_COMMIT_SHORT_SHA
|
||||
KUBE_NAMESPACE: sidata-prod
|
||||
@@ -26,6 +26,11 @@ build:
|
||||
image: 10.15.39.186:8083/buildah:stable
|
||||
tags:
|
||||
- skpp
|
||||
before_script:
|
||||
- echo '0. FETCHING CODE MANUALLY (BYPASS SSL)'
|
||||
- git config --global http.sslVerify false
|
||||
- git clone https://gitlab.dashboard-bpkd.drc-bpkd.data-center.id/izuddin/sidata.git .
|
||||
- git checkout $CI_COMMIT_SHA
|
||||
script:
|
||||
- echo '1. MENERAPKAN PENGATURAN REGISTRY'
|
||||
- mkdir -p ~/.config/containers
|
||||
@@ -66,6 +71,11 @@ deploy:
|
||||
entrypoint: [""]
|
||||
tags:
|
||||
- skpp
|
||||
before_script:
|
||||
- echo '0. FETCHING CODE MANUALLY (BYPASS SSL)'
|
||||
- git config --global http.sslVerify false
|
||||
- git clone https://gitlab.dashboard-bpkd.drc-bpkd.data-center.id/izuddin/sidata.git .
|
||||
- git checkout $CI_COMMIT_SHA
|
||||
script:
|
||||
- echo '1. SETUP KUBECONFIG LOKAL & BYPASS PROXY'
|
||||
- unset http_proxy https_proxy HTTP_PROXY HTTPS_PROXY
|
||||
|
||||
Reference in New Issue
Block a user