Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
Wazuh + VAT Evidence Collector
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
MEDINA
Public
Wazuh + VAT Evidence Collector
Commits
1ed50ddf
Commit
1ed50ddf
authored
2 years ago
by
Zitnik, Anze
Browse files
Options
Downloads
Patches
Plain Diff
Remove CI script
parent
8f062883
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+0
-59
0 additions, 59 deletions
.gitlab-ci.yml
with
0 additions
and
59 deletions
.gitlab-ci.yml
deleted
100644 → 0
+
0
−
59
View file @
8f062883
image
:
nexus-registry.xlab.si:5001/docker:dind
variables
:
REGISTRY
:
registry-gitlab.xlab.si
MEDINA_REGISTRY
:
optima-medina-docker-dev.artifact.tecnalia.com
MEDINA_REG_PATH
:
wp3/t32
before_script
:
-
export SERVICE=$(grep SERVICE MANIFEST | cut -d '=' -f2)
-
export VERSION=$(grep VERSION MANIFEST | cut -d '=' -f2)
stages
:
-
build
-
test
-
push
-
deploy
build
:
stage
:
build
script
:
-
docker build --no-cache -t $REGISTRY/medina/$SERVICE:$VERSION .
test
:
stage
:
test
script
:
-
apk add bash
-
docker network create test-ec
-
docker run --rm --network=test-ec --env-file .env --name $SERVICE -d $REGISTRY/medina/$SERVICE:$VERSION
-
docker run --rm --network=test-ec toschneck/wait-for-it $SERVICE:7890 -t
240
-
bash test/test.sh
after_script
:
-
SERVICE=$(grep SERVICE MANIFEST | cut -d '=' -f2)
-
docker kill $SERVICE || docker network rm test-ec
-
docker network rm test-ec
push
:
stage
:
push
script
:
-
docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $REGISTRY
-
docker tag $REGISTRY/medina/$SERVICE:$VERSION $REGISTRY/medina/$SERVICE:latest
-
docker push $REGISTRY/medina/$SERVICE:$VERSION
-
docker push $REGISTRY/medina/$SERVICE:latest
-
docker logout $REGISTRY
-
docker login $MEDINA_REGISTRY -u medina.fordevelopers@gmail.com -p --password--
-
docker tag $REGISTRY/medina/$SERVICE:$VERSION $MEDINA_REGISTRY/$MEDINA_REG_PATH/wazuh-vat-$SERVICE:$VERSION
-
docker tag $REGISTRY/medina/$SERVICE:$VERSION $MEDINA_REGISTRY/$MEDINA_REG_PATH/wazuh-vat-$SERVICE:latest
-
docker push $MEDINA_REGISTRY/$MEDINA_REG_PATH/wazuh-vat-$SERVICE:$VERSION
-
docker push $MEDINA_REGISTRY/$MEDINA_REG_PATH/wazuh-vat-$SERVICE:latest
-
docker logout $MEDINA_REGISTRY
only
:
-
master
deploy
:
stage
:
deploy
script
:
-
docker run --rm curlimages/curl -I -X POST "https://xlab:password@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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment