Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
ML_Security_ORAM
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
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mahyar Vahabi
ML_Security_ORAM
Commits
f65b00ac
Commit
f65b00ac
authored
1 month ago
by
Mahyar Vahabi
Browse files
Options
Downloads
Patches
Plain Diff
Update .gitlab-ci.yml file
parent
f54b2f22
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#617386
canceled
1 month ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+7
-11
7 additions, 11 deletions
.gitlab-ci.yml
with
7 additions
and
11 deletions
.gitlab-ci.yml
+
7
−
11
View file @
f65b00ac
...
...
@@ -21,32 +21,28 @@ stages:
-
performance
-
cleanup
#
Use
Docker-in-Docker (DinD)
for the CI jobs
#
Add
Docker-in-Docker (DinD)
service and ensure privileged mode
services
:
-
name
:
docker:dind
command
:
[
"
--host=tcp://0.0.0.0:2375"
,
"
--add-host=host.docker.internal:host-gateway"
]
variables
:
DOCKER_DRIVER
:
overlay2
DOCKER_HOST
:
tcp://docker:2375
# Set the Docker host to Docker-in-Docker
# You can also configure specific Docker versions if necessary
# DOCKER_VERSION: "19.03.12"
DOCKER_HOST
:
tcp://docker:2375
# Configure Docker to point to the DinD service
before_script
:
-
docker info
# Confirm Docker is
working inside the job
-
docker info
# Confirm Docker is
available and check the Docker info
# Define the test stage where Docker is used
test
:
stage
:
test
image
:
python:3.8
# Use
the
Python image or a
nother image as
need
ed
image
:
python:3.8
# Use
a
Python image or a
djust for your
need
s
before_script
:
-
pip install -r requirements.txt
# Install dependencies
script
:
-
docker info
#
Check
if Docker is
available
-
pytest
# Run your tests
here
-
docker info
#
Ver
if
y
Docker is
running
-
pytest
# Run your tests
artifacts
:
paths
:
-
gl-code-quality-report.json
# Ensure this
is generated if needed
-
gl-code-quality-report.json
# Ensure this
path is correct if you need to upload artifacts
# Define other stages as needed...
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