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

Update .gitlab-ci.yml file

parent 829555bf
No related branches found
No related tags found
No related merge requests found
Pipeline #67370 failed with stage
in 15 seconds
...@@ -25,24 +25,19 @@ deploy-dev: ...@@ -25,24 +25,19 @@ deploy-dev:
tags: tags:
- docker-shell - docker-shell
script: script:
# Install kubectl and Helm if not already installed on your runner
- which kubectl || curl -LO "https://dl.k8s.io/release/v1.28.0/bin/linux/amd64/kubectl"
- which kubectl || chmod +x ./kubectl
- which kubectl || mv ./kubectl /usr/local/bin/kubectl
- which helm || curl https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash
# Now you can directly use kubectl/helm with your local cluster # Now you can directly use kubectl/helm with your local cluster
- helm upgrade --install my-release task-app/ --namespace task-app --create-namespace
# Install kubectl and Helm # Install kubectl and Helm
# - curl -LO "https://dl.k8s.io/release/v1.28.0/bin/linux/amd64/kubectl" - curl -LO "https://dl.k8s.io/release/v1.28.0/bin/linux/amd64/kubectl"
# - chmod +x ./kubectl - chmod +x ./kubectl
# - mv ./kubectl /usr/local/bin/kubectl - mv ./kubectl /usr/local/bin/kubectl
# - curl https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash - curl https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash
# # Set up kubeconfig # Set up kubeconfig
# - mkdir -p ~/.kube - mkdir -p ~/.kube
# - echo $KUBE_CONFIG | base64 -d > ~/.kube/config - echo $KUBE_CONFIG | base64 -d > ~/.kube/config
# - chmod 600 ~/.kube/config - chmod 600 ~/.kube/config
# # Deploy # # Deploy
- helm upgrade --install my-release task-app/ --namespace task-app --create-namespace
# - 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 # - 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: environment:
name: development name: development
......
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