EOX GitLab Instance

Commit 4067dfdc authored by Mussab Abdalla's avatar Mussab Abdalla
Browse files

CI impmentation

parent 5b02c717
Pipeline #17425 failed with stages
in 19 seconds
stages:
- test
- deploy
variables:
DOCKER_TLS_CERTDIR: ""
test:
image: python:3.8-slim
stage: test
script:
- python3 setup.py install
- pip3 install -r requirements-test.txt
- pytest
deploy_latest:
image: docker:20.10.8
services:
- docker:20.10.8-dind
stage: deploy
script:
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" "$CI_REGISTRY"
- docker build -t $CI_REGISTRY_IMAGE .
- docker push $CI_REGISTRY_IMAGE:latest
except:
- tags
deploy:
image: docker:20.10.8
services:
- docker:20.10.8-dind
stage: deploy
script:
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" "$CI_REGISTRY"
- docker build --cache-from $CI_REGISTRY_IMAGE:latest -t $CI_REGISTRY_IMAGE .
- docker push $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_NAME
only:
- tags
Markdown is supported
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