diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 33fef9773f715ec510909f08af92e56fa0ce58c8..7aa284fba7703afdb0351dd055bf77a96820ebed 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -13,6 +13,7 @@ stages: - build - test - push + - deploy build: stage: build @@ -45,3 +46,11 @@ push: - docker logout $MEDINA_REGISTRY only: - master + +deploy: + stage: deploy + script: + - docker run --rm curlimages/curl -I -X POST "https://xlab:110bb809200c797e6031787b51a049b819@cicd.medina.esilab.org/jenkins/job/medina/job/wp3/job/task_3.2/job/wazuh-vat-evidence-collector-deploy/buildWithParameters?PRJ_ENV=dev&PRJ_IMAGE_TAG=latest&YAMLS_OVERRIDE=" + only: + - master + diff --git a/kubernetes/wazuh-vat-evidence-collector-deployment.yaml b/kubernetes/wazuh-vat-evidence-collector-deployment.yaml index 3d008ae2c72d91efe80d8fd601a55509e31e9147..a04b7d2f84649274803c9197f5fa6c055677b982 100644 --- a/kubernetes/wazuh-vat-evidence-collector-deployment.yaml +++ b/kubernetes/wazuh-vat-evidence-collector-deployment.yaml @@ -25,5 +25,8 @@ spec: - name: config-volume mountPath: /evidence-collector/constants.json subPath: constants.json + env: + - name: TIME + value: {{time}} imagePullSecrets: - name: regcred