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

Update .gitlab-ci.yml file

parent 903a0c17
No related branches found
No related tags found
No related merge requests found
Pipeline #67327 failed with stage
in 1 minute
...@@ -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
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