Commit 077c13b6 authored by Carlos Natalino's avatar Carlos Natalino
Browse files

Removing `deploy` stage

parent 803aec96
Loading
Loading
Loading
Loading
+24 −24
Original line number Diff line number Diff line
@@ -78,27 +78,27 @@ unit_test dbscanserving:


# Deployment of the dbscanserving service in Kubernetes Cluster
deploy dbscanserving:
  variables:
    IMAGE_NAME: 'dbscanserving' # name of the microservice
    IMAGE_TAG: 'latest' # tag of the container image (production, development, etc)
  stage: deploy
  needs:
    - unit test dbscanserving
    # - integ_test execute
  script:
    - 'sed -i "s/$IMAGE_NAME:.*/$IMAGE_NAME:$IMAGE_TAG/" manifests/${IMAGE_NAME}service.yaml'
    - kubectl version
    - kubectl get all
    - kubectl apply -f "manifests/${IMAGE_NAME}service.yaml"
    - kubectl get all
  # environment:
  #   name: test
  #   url: https://example.com
  #   kubernetes:
  #     namespace: test
  rules:
    - if: '$CI_PIPELINE_SOURCE == "merge_request_event" && ($CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "develop" || $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == $CI_DEFAULT_BRANCH)'
      when: manual    
    - if: '$CI_PIPELINE_SOURCE == "push" && $CI_COMMIT_BRANCH == "develop"'
      when: manual
 No newline at end of file
# deploy dbscanserving:
#   variables:
#     IMAGE_NAME: 'dbscanserving' # name of the microservice
#     IMAGE_TAG: 'latest' # tag of the container image (production, development, etc)
#   stage: deploy
#   needs:
#     - unit test dbscanserving
#     # - integ_test execute
#   script:
#     - 'sed -i "s/$IMAGE_NAME:.*/$IMAGE_NAME:$IMAGE_TAG/" manifests/${IMAGE_NAME}service.yaml'
#     - kubectl version
#     - kubectl get all
#     - kubectl apply -f "manifests/${IMAGE_NAME}service.yaml"
#     - kubectl get all
#   # environment:
#   #   name: test
#   #   url: https://example.com
#   #   kubernetes:
#   #     namespace: test
#   rules:
#     - if: '$CI_PIPELINE_SOURCE == "merge_request_event" && ($CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "develop" || $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == $CI_DEFAULT_BRANCH)'
#       when: manual    
#     - if: '$CI_PIPELINE_SOURCE == "push" && $CI_COMMIT_BRANCH == "develop"'
#       when: manual
 No newline at end of file
+24 −24
Original line number Diff line number Diff line
@@ -77,27 +77,27 @@ unit_test opticalattackdetector:


# Deployment of the opticalattackdetector service in Kubernetes Cluster
deploy opticalattackdetector:
  variables:
    IMAGE_NAME: 'opticalattackdetector' # name of the microservice
    IMAGE_TAG: 'latest' # tag of the container image (production, development, etc)
  stage: deploy
  needs:
    - unit test opticalattackdetector
    # - integ_test execute
  script:
    - 'sed -i "s/$IMAGE_NAME:.*/$IMAGE_NAME:$IMAGE_TAG/" manifests/${IMAGE_NAME}service.yaml'
    - kubectl version
    - kubectl get all
    - kubectl apply -f "manifests/${IMAGE_NAME}service.yaml"
    - kubectl get all
  # environment:
  #   name: test
  #   url: https://example.com
  #   kubernetes:
  #     namespace: test
  rules:
    - if: '$CI_PIPELINE_SOURCE == "merge_request_event" && ($CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "develop" || $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == $CI_DEFAULT_BRANCH)'
      when: manual    
    - if: '$CI_PIPELINE_SOURCE == "push" && $CI_COMMIT_BRANCH == "develop"'
      when: manual
 No newline at end of file
# deploy opticalattackdetector:
#   variables:
#     IMAGE_NAME: 'opticalattackdetector' # name of the microservice
#     IMAGE_TAG: 'latest' # tag of the container image (production, development, etc)
#   stage: deploy
#   needs:
#     - unit test opticalattackdetector
#     # - integ_test execute
#   script:
#     - 'sed -i "s/$IMAGE_NAME:.*/$IMAGE_NAME:$IMAGE_TAG/" manifests/${IMAGE_NAME}service.yaml'
#     - kubectl version
#     - kubectl get all
#     - kubectl apply -f "manifests/${IMAGE_NAME}service.yaml"
#     - kubectl get all
#   # environment:
#   #   name: test
#   #   url: https://example.com
#   #   kubernetes:
#   #     namespace: test
#   rules:
#     - if: '$CI_PIPELINE_SOURCE == "merge_request_event" && ($CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "develop" || $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == $CI_DEFAULT_BRANCH)'
#       when: manual    
#     - if: '$CI_PIPELINE_SOURCE == "push" && $CI_COMMIT_BRANCH == "develop"'
#       when: manual
 No newline at end of file
+24 −24
Original line number Diff line number Diff line
@@ -79,27 +79,27 @@ unit_test opticalattackmanager:
        junit: src/$IMAGE_NAME/tests/${IMAGE_NAME}_report.xml

# Deployment of the service in Kubernetes Cluster
deploy opticalattackmanager:
  variables:
    IMAGE_NAME: 'opticalattackmanager' # name of the microservice
    IMAGE_TAG: 'latest' # tag of the container image (production, development, etc)
  stage: deploy
  needs:
    - unit test opticalattackmanager
    # - integ_test execute
  script:
    - 'sed -i "s/$IMAGE_NAME:.*/$IMAGE_NAME:$IMAGE_TAG/" manifests/${IMAGE_NAME}service.yaml'
    - kubectl version
    - kubectl get all
    - kubectl apply -f "manifests/${IMAGE_NAME}service.yaml"
    - kubectl get all
  # environment:
  #   name: test
  #   url: https://example.com
  #   kubernetes:
  #     namespace: test
  rules:
    - if: '$CI_PIPELINE_SOURCE == "merge_request_event" && ($CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "develop" || $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == $CI_DEFAULT_BRANCH)'
      when: manual    
    - if: '$CI_PIPELINE_SOURCE == "push" && $CI_COMMIT_BRANCH == "develop"'
      when: manual
# deploy opticalattackmanager:
#   variables:
#     IMAGE_NAME: 'opticalattackmanager' # name of the microservice
#     IMAGE_TAG: 'latest' # tag of the container image (production, development, etc)
#   stage: deploy
#   needs:
#     - unit test opticalattackmanager
#     # - integ_test execute
#   script:
#     - 'sed -i "s/$IMAGE_NAME:.*/$IMAGE_NAME:$IMAGE_TAG/" manifests/${IMAGE_NAME}service.yaml'
#     - kubectl version
#     - kubectl get all
#     - kubectl apply -f "manifests/${IMAGE_NAME}service.yaml"
#     - kubectl get all
#   # environment:
#   #   name: test
#   #   url: https://example.com
#   #   kubernetes:
#   #     namespace: test
#   rules:
#     - if: '$CI_PIPELINE_SOURCE == "merge_request_event" && ($CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "develop" || $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == $CI_DEFAULT_BRANCH)'
#       when: manual    
#     - if: '$CI_PIPELINE_SOURCE == "push" && $CI_COMMIT_BRANCH == "develop"'
#       when: manual
+24 −24
Original line number Diff line number Diff line
@@ -76,27 +76,27 @@ unit_test opticalattackmitigator:


# Deployment of the opticalattackmitigator service in Kubernetes Cluster
deploy opticalattackmitigator:
  variables:
    IMAGE_NAME: 'opticalattackmitigator' # name of the microservice
    IMAGE_TAG: 'latest' # tag of the container image (production, development, etc)
  stage: deploy
  needs:
    - unit test opticalattackmitigator
    # - integ_test execute
  script:
    - 'sed -i "s/$IMAGE_NAME:.*/$IMAGE_NAME:$IMAGE_TAG/" manifests/${IMAGE_NAME}service.yaml'
    - kubectl version
    - kubectl get all
    - kubectl apply -f "manifests/${IMAGE_NAME}service.yaml"
    - kubectl get all
  # environment:
  #   name: test
  #   url: https://example.com
  #   kubernetes:
  #     namespace: test
  rules:
    - if: '$CI_PIPELINE_SOURCE == "merge_request_event" && ($CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "develop" || $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == $CI_DEFAULT_BRANCH)'
      when: manual    
    - if: '$CI_PIPELINE_SOURCE == "push" && $CI_COMMIT_BRANCH == "develop"'
      when: manual
 No newline at end of file
# deploy opticalattackmitigator:
#   variables:
#     IMAGE_NAME: 'opticalattackmitigator' # name of the microservice
#     IMAGE_TAG: 'latest' # tag of the container image (production, development, etc)
#   stage: deploy
#   needs:
#     - unit test opticalattackmitigator
#     # - integ_test execute
#   script:
#     - 'sed -i "s/$IMAGE_NAME:.*/$IMAGE_NAME:$IMAGE_TAG/" manifests/${IMAGE_NAME}service.yaml'
#     - kubectl version
#     - kubectl get all
#     - kubectl apply -f "manifests/${IMAGE_NAME}service.yaml"
#     - kubectl get all
#   # environment:
#   #   name: test
#   #   url: https://example.com
#   #   kubernetes:
#   #     namespace: test
#   rules:
#     - if: '$CI_PIPELINE_SOURCE == "merge_request_event" && ($CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "develop" || $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == $CI_DEFAULT_BRANCH)'
#       when: manual    
#     - if: '$CI_PIPELINE_SOURCE == "push" && $CI_COMMIT_BRANCH == "develop"'
#       when: manual
 No newline at end of file