From 9632a4f06d02bd1cbf585173f1b5375094c0e212 Mon Sep 17 00:00:00 2001
From: Carlos Natalino <carlos.natalino@chalmers.se>
Date: Thu, 9 Dec 2021 17:17:22 +0000
Subject: [PATCH] Adjusting the gitlab CI file.

---
 src/opticalattackmitigator/.gitlab-ci.yml | 20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)

diff --git a/src/opticalattackmitigator/.gitlab-ci.yml b/src/opticalattackmitigator/.gitlab-ci.yml
index 470ddeb8f..47a25be3c 100644
--- a/src/opticalattackmitigator/.gitlab-ci.yml
+++ b/src/opticalattackmitigator/.gitlab-ci.yml
@@ -1,7 +1,7 @@
 # build, tag and push the Docker image to the gitlab registry
-build opticalcentralizedattackdetector:
+build opticalattackmitigator:
   variables:
-    IMAGE_NAME: 'opticalcentralizedattackdetector' # name of the microservice
+    IMAGE_NAME: 'opticalattackmitigator' # name of the microservice
     IMAGE_TAG: 'latest' # tag of the container image (production, development, etc)
   stage: build
   before_script:
@@ -23,14 +23,14 @@ build opticalcentralizedattackdetector:
       - manifests/$IMAGE_NAME.yaml
       - .gitlab-ci.yml
 
-# apply unit test to the opticalcentralizedattackdetector component
-unit test opticalcentralizedattackdetector:
+# apply unit test to the opticalattackmitigator component
+unit test opticalattackmitigator:
   variables:
-    IMAGE_NAME: 'opticalcentralizedattackdetector' # name of the microservice
+    IMAGE_NAME: 'opticalattackmitigator' # name of the microservice
     IMAGE_TAG: 'latest' # tag of the container image (production, development, etc)
   stage: unit_test
   needs:
-    - build opticalcentralizedattackdetector
+    - build opticalattackmitigator
   before_script:
     - docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
     - if docker network list | grep teraflowbridge; then echo "teraflowbridge is already created"; else docker network create -d bridge teraflowbridge; fi
@@ -56,14 +56,14 @@ unit test opticalcentralizedattackdetector:
       - .gitlab-ci.yml
 
 
-# Deployment of the opticalcentralizedattackdetector service in Kubernetes Cluster
-deploy opticalcentralizedattackdetector:
+# Deployment of the opticalattackmitigator service in Kubernetes Cluster
+deploy opticalattackmitigator:
   variables:
-    IMAGE_NAME: 'opticalcentralizedattackdetector' # name of the microservice
+    IMAGE_NAME: 'opticalattackmitigator' # name of the microservice
     IMAGE_TAG: 'latest' # tag of the container image (production, development, etc)
   stage: deploy
   needs:
-    - unit test opticalcentralizedattackdetector
+    - unit test opticalattackmitigator
     # - integ_test execute
   script:
     - 'sed -i "s/$IMAGE_NAME:.*/$IMAGE_NAME:$IMAGE_TAG/" manifests/${IMAGE_NAME}service.yaml'
-- 
GitLab