Commit 7849eb85 authored by Alp Deniz Ogut's avatar Alp Deniz Ogut
Browse files

Update ci

parent fd0e3542
Pipeline #14433 passed with stages
in 1 minute and 7 seconds
Showing with 6 additions and 10 deletions
+6 -10
......@@ -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
- main
- master
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
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment