Skip to content
Snippets Groups Projects
Commit bbdd67b7 authored by Sean Fredrick Cruz's avatar Sean Fredrick Cruz
Browse files

Update .gitlab-ci.yml file

parent 6d708f72
No related branches found
No related tags found
No related merge requests found
Pipeline #67332 failed with stage
in 1 minute and 3 seconds
......@@ -31,10 +31,12 @@ deploy-dev:
- mkdir -p ~/.kube
- echo $KUBE_CONFIG | base64 -d > ~/.kube/config
- chmod 600 ~/.kube/config
- kubectl apply -f task-app/ --server=https://8.tcp.ngrok.io:12167 --insecure-skip-tls-verify
# Extract auth token if available
- 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
# - 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
environment:
name: development
only:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment