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
254dd879
Commit
254dd879
authored
3 years ago
by
Matevz Erzen
Browse files
Options
Downloads
Patches
Plain Diff
Added CI config
parent
fe175304
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
.dockerignore
+5
-1
5 additions, 1 deletion
.dockerignore
.gitlab-ci.yml
+40
-0
40 additions, 0 deletions
.gitlab-ci.yml
Dockerfile
+1
-1
1 addition, 1 deletion
Dockerfile
MANIFEST
+2
-0
2 additions, 0 deletions
MANIFEST
with
48 additions
and
2 deletions
.dockerignore
+
5
−
1
View file @
254dd879
...
...
@@ -2,4 +2,8 @@ __pycache__/
*.pyc
*$py.class
.idea/
dump.rdb
\ No newline at end of file
dump.rdb
.git
.cache
.gitignore
.gitlab-ci.yml
\ No newline at end of file
This diff is collapsed.
Click to expand it.
.gitlab-ci.yml
0 → 100644
+
40
−
0
View file @
254dd879
image
:
nexus-registry.xlab.si:5001/docker:dind
variables
:
REGISTRY
:
registry-gitlab.xlab.si
before_script
:
-
export SERVICE=$(grep SERVICE MANIFEST | cut -d '=' -f2)
-
export VERSION=$(grep VERSION MANIFEST | cut -d '=' -f2)
stages
:
-
build
-
test
-
push
build
:
stage
:
build
script
:
-
docker build --no-cache -t $REGISTRY/medina/$SERVICE:$VERSION .
only
:
-
develop
-
master
test
:
stage
:
test
script
:
-
echo "not yet implemented"
only
:
-
develop
-
master
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
only
:
-
master
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Dockerfile
+
1
−
1
View file @
254dd879
# syntax=docker/dockerfile:1
FROM
python:3.8-slim-buster
FROM
nexus-registry.xlab.si:5001/
python:3.8-slim-buster
WORKDIR
/evidence-collector
...
...
This diff is collapsed.
Click to expand it.
MANIFEST
0 → 100644
+
2
−
0
View file @
254dd879
VERSION=v0.0.1
SERVICE=evidence-collector
\ No newline at end of file
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