From 6a0b274cc173220564a9e805c3dfe3219b2c5fe7 Mon Sep 17 00:00:00 2001 From: Sean Fredrick Cruz <seanfredrick.cruz@stratpoint.com> Date: Wed, 26 Mar 2025 07:04:33 +0000 Subject: [PATCH] Update .gitlab-ci.yml file --- .gitlab-ci.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index bfc1e1f..4863446 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -23,11 +23,12 @@ build-frontend: deploy-dev: stage: deploy script: - # Install kubectl + # Install kubectl and Helm - curl -LO "https://dl.k8s.io/release/v1.28.0/bin/linux/amd64/kubectl" - chmod +x ./kubectl - mv ./kubectl /usr/local/bin/kubectl - # Set up kubeconfig (for extracting auth details) + - curl https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash + # Set up kubeconfig - mkdir -p ~/.kube - echo $KUBE_CONFIG | base64 -d > ~/.kube/config - chmod 600 ~/.kube/config @@ -36,7 +37,9 @@ deploy-dev: # - export TOKEN=$(kubectl config view --minify -o jsonpath='{.users[0].user.token}') # Try token-based auth if available # - if [ ! -z "$TOKEN" ]; then kubectl apply -f task-app/ --server=https://8.tcp.ngrok.io:12167 --insecure-skip-tls-verify --token=$TOKEN; else echo "No token found in config"; fi - - kubectl apply -f task-app/ --server=https://0.tcp.ap.ngrok.io:11295 --insecure-skip-tls-verify + + # - kubectl apply -f task-app/ --server=https://0.tcp.ap.ngrok.io:11295 --insecure-skip-tls-verify + - helm upgrade --install my-release task-app/ --namespace task-app --create-namespace --kube-apiserver https://0.tcp.ap.ngrok.io:11295 --kube-insecure-skip-tls-verify environment: name: development only: -- GitLab