Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Memri
plugins
Link Reader
Commits
7849eb85
Commit
7849eb85
authored
1 year ago
by
Alp Deniz Ogut
Browse files
Options
Download
Email Patches
Plain Diff
Update ci
parent
fd0e3542
Pipeline
#14433
passed with stages
in 1 minute and 7 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+6
-10
.gitlab-ci.yml
with
6 additions
and
10 deletions
+6
-10
.gitlab-ci.yml
+
6
-
10
View file @
7849eb85
...
...
@@ -6,31 +6,27 @@ test:
image
:
python:3.9
stage
:
test
services
:
-
name
:
gitlab.memri.io:5050/memri/pod:dev-latest
-
name
:
${POD_IMAGE}
alias
:
pod
entrypoint
:
-
"
/pod"
-
"
--owners=ANY"
-
"
--insecure-non-tls=0.0.0.0"
before_script
:
-
pip install -e .
-
pip install pymemri
-
pip install linkpreview
-
pip install pytest
-
pip install -e .[dev]
script
:
-
curl http://pod:3030/version
-
export POD_ADDRESS='http://pod:3030'
-
export PYTHONPATH=.
-
pytest tests/
-
pytest
build_image
:
only
:
-
dev
-
ma
in
-
ma
ster
stage
:
build
before_script
:
-
echo "Building docker image..."
image
:
image
:
# We recommend using the CERN version of the Kaniko image: gitlab-registry.cern.ch/ci-tools/docker-image-builder
name
:
gcr.io/kaniko-project/executor:debug
entrypoint
:
[
"
"
]
...
...
@@ -40,4 +36,4 @@ build_image:
# Build and push the image from the Dockerfile at the root of the project.
# To push to a specific docker tag, amend the --destination parameter, e.g. --destination $CI_REGISTRY_IMAGE:$CI_BUILD_REF_NAME
# See https://docs.gitlab.com/ee/ci/variables/predefined_variables.html#variables-reference for available variables
-
/kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/Dockerfile
--build-arg CI_JOB_TOKEN=$CI_JOB_TOKEN
--destination $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG-$CI_COMMIT_SHORT_SHA --destination $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG-latest
-
/kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/Dockerfile --destination $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG-$CI_COMMIT_SHORT_SHA --destination $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG-latest
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Snippets