Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
Task app management
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
JetBrains YouTrack
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Sean Fredrick Cruz
Task app management
Commits
047110ca
Commit
047110ca
authored
5 months ago
by
Sean Fredrick Cruz
Browse files
Options
Downloads
Patches
Plain Diff
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
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+10
-15
10 additions, 15 deletions
.gitlab-ci.yml
with
10 additions
and
15 deletions
.gitlab-ci.yml
+
10
−
15
View file @
047110ca
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment