Skip to content
Snippets Groups Projects
Commit b10d474a authored by Bartosz Walkowiak's avatar Bartosz Walkowiak
Browse files

Merge branch 'model' into 'master'

Model

See merge request !2
parents a8163416 41d06d37
1 merge request!2Model
Pipeline #8269 passed with stages
in 1 minute and 3 seconds
...@@ -7,38 +7,39 @@ cache: ...@@ -7,38 +7,39 @@ cache:
stages: stages:
- check_style - check_style
- build - build
- build_develop
before_script:
- pip install tox==2.9.1
pep8: pep8:
before_script:
- pip install tox==2.9.1
stage: check_style stage: check_style
script: script:
- tox -v -e pep8 - tox -v -e pep8
docstyle: docstyle:
before_script:
- pip install tox==2.9.1
stage: check_style stage: check_style
script: script:
- tox -v -e docstyle - tox -v -e docstyle
build_image: build_master:
stage: build stage: build
image: 'docker:18.09.7' image: 'docker:18.09.7'
only: only:
- master - master
services:
- 'docker:18.09.7-dind'
variables:
DOCKERHUB_NAME: clarinpl/$CI_PROJECT_NAME
before_script:
- ''
script: script:
- docker build -t $DOCKERHUB_NAME . - docker build -t $CI_REGISTRY_IMAGE:latest .
- echo $DOCKER_PASSWORD > pass.txt - docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
- cat pass.txt | docker login --username $DOCKER_USERNAME --password-stdin - docker push $CI_REGISTRY_IMAGE:latest
- rm pass.txt
- docker push $DOCKERHUB_NAME
build_develop:
stage: build_develop
image: 'docker:18.09.7'
only:
- model
script:
- docker build -t $CI_REGISTRY_IMAGE:develop .
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY - docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
- docker image tag $DOCKERHUB_NAME $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG - docker push $CI_REGISTRY_IMAGE:develop
- docker image tag $DOCKERHUB_NAME $CI_REGISTRY_IMAGE:latest
- docker push $CI_REGISTRY_IMAGE
autocorrect==2.1.0 autocorrect
nlp-ws nlp-ws<=0.8
numpy==1.17.4 numpy==1.17.4
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