diff --git a/ci_gcp/gitlab-ci.yaml b/ci_gcp/gitlab-ci.yaml index 03e6434097b55c191c7d0c634ce7c24ea79465d2..a4112a2c885ab6caa1ffcea9cf42c4c978010f14 100644 --- a/ci_gcp/gitlab-ci.yaml +++ b/ci_gcp/gitlab-ci.yaml @@ -53,11 +53,12 @@ gstest deploy client: - cp ../../ci_gcp/values-client.yaml . - echo $(pwd) - echo ~ + - echo $HOME - ls ~/.kube || echo "Nope" - ls ~/.config || echo "Nope" - helm list # namespace names are the same as domain names - - helm upgrade -v 2 --install --namespace $ns -f values-client.yaml geosphere-client geosphere-client/ + - helm_for_gcp upgrade -v 2 --install --namespace $ns -f values-client.yaml geosphere-client geosphere-client/ dependencies: - get_chart_client_test rules: diff --git a/helpers/shell_aliases.sh b/helpers/shell_aliases.sh index 082d11f33a3ffaecec3d4d9d41862a1d94fe17e7..e3d29f1e8eb3e0020239e05dc9ee062707b59afd 100644 --- a/helpers/shell_aliases.sh +++ b/helpers/shell_aliases.sh @@ -7,6 +7,11 @@ helm() { } export -f helm +helm_for_gcp() { + docker run -t --rm -e HELM_EXPERIMENTAL_OCI="$HELM_EXPERIMENTAL_OCI" -v $(pwd):/apps -w /apps -v ~/.kube:/root/.kube -v ~/.helm:/root/.helm -v ~/.config:/root/.config -v ~/.cache:/root/.cache alpine/helm:3.2.3 "$@" +} +export -f helm_for_gcp + kubectl() { docker run -a stdout --rm -v $(pwd):/apps -w /apps alpine/k8s:1.18.2 kubectl "$@" }