Skip to content
Snippets Groups Projects
Commit b6b03cc7 authored by BOUTELDJA Wassim's avatar BOUTELDJA Wassim
Browse files

Modify the pipeline to deploy with kubectl

parent 1163d002
Branches
No related tags found
1 merge request!23Modify the pipeline to deploy with kubectl
Pipeline #48822 failed
......@@ -4,6 +4,7 @@ stages:
- RunDockerCompose
- LintTest
- UnitTest
- KubernetesDeploy
variables:
......@@ -62,3 +63,23 @@ BackendTest:
- echo "Coverage report complete"
after_script:
- cd ..
KubernetesDeploy:
tags:
- polytech
- tp
stage: KubernetesDeploy
before_script:
- echo "Building Docker image"
- docker build -t $DockerComposeImageName .
- echo "Docker image build complete"
script:
- echo "Deploying to Kubernetes"
- kubectl apply -f k8s/FrontEndDeployment.yml
- kubectl apply -f k8s/Frontservice.yml
- kubectl apply -f k8s/BackEndDeployment.yml
- kubectl apply -f k8s/BackService.yml
- kubectl apply -f k8s/BDDDeployment.yml
- kubectl apply -f k8s/BDDService.yml
- echo the pods are running
- kubectl get pods
- echo "Kubernetes deployment complete"
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment