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
b88f5b5a
Commit
b88f5b5a
authored
4 months ago
by
Sean Fredrick Cruz
Browse files
Options
Downloads
Patches
Plain Diff
Update .gitlab-ci.yml file
parent
903a0c17
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#67327
failed with stage
Stage: deploy
in 1 minute
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+3
-10
3 additions, 10 deletions
.gitlab-ci.yml
with
3 additions
and
10 deletions
.gitlab-ci.yml
+
3
−
10
View file @
b88f5b5a
...
@@ -23,21 +23,14 @@ build-frontend:
...
@@ -23,21 +23,14 @@ build-frontend:
deploy-dev
:
deploy-dev
:
stage
:
deploy
stage
:
deploy
script
:
script
:
# Install kubectl
-
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
# Setup kubeconfig
-
mkdir -p ~/.kube
-
mkdir -p ~/.kube
-
echo "$KUBE_CONFIG" | base64 -d > ~/.kube/config
-
./kubectl apply -f task-app/
-
echo $KUBE_CONFIG | base64 -d > ~/.kube/config
-
echo $KUBE_CONFIG | base64 -d > ~/.kube/config
-
chmod 600 ~/.kube/config
-
chmod 600 ~/.kube/config
-
kubectl apply -f task-app/
-
./kubectl cluster-info
-
echo "Validating Kubernetes manifests..."
-
./kubectl apply -f task-app/ --dry-run=client --validate=false
-
echo "✅ Kubernetes manifests are valid and would be applied in a real environment"
environment
:
environment
:
name
:
development
name
:
development
only
:
only
:
-
develop
\ No newline at end of file
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