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

Update .gitlab-ci.yml file

parent aef01e38
No related branches found
No related tags found
No related merge requests found
Pipeline #67357 failed with stage
in 1 minute and 5 seconds
...@@ -33,9 +33,10 @@ deploy-dev: ...@@ -33,9 +33,10 @@ deploy-dev:
- chmod 600 ~/.kube/config - chmod 600 ~/.kube/config
# Extract auth token if available # Extract auth token if available
- export TOKEN=$(kubectl config view --minify -o jsonpath='{.users[0].user.token}') # - export TOKEN=$(kubectl config view --minify -o jsonpath='{.users[0].user.token}')
# Try token-based auth if available # 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 # - 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://YOUR_NGROK_URL:PORT --insecure-skip-tls-verify
environment: environment:
name: development name: development
only: 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