Skip to content
Snippets Groups Projects
Commit a8163416 authored by Bartosz Ziemba's avatar Bartosz Ziemba
Browse files

Update .gitlab-ci.yml

parent 1b870251
No related merge requests found
Pipeline #8265 passed with stage
in 19 seconds
image: 'clarinpl/python:3.6' image: 'clarinpl/python:3.6'
cache: cache:
paths: paths:
- .tox - .tox
stages: stages:
- check_style - check_style
- build - build
before_script: before_script:
- pip install tox==2.9.1 - pip install tox==2.9.1
pep8: pep8:
stage: check_style stage: check_style
script: script:
- tox -v -e pep8 - tox -v -e pep8
docstyle: docstyle:
stage: check_style stage: check_style
script: script:
- tox -v -e docstyle - tox -v -e docstyle
build_image: build_image:
stage: build stage: build
image: docker:18.09.7 image: 'docker:18.09.7'
only: only:
- master - master
services: services:
- 'docker:18.09.7-dind' - 'docker:18.09.7-dind'
before_script: variables:
- '' DOCKERHUB_NAME: clarinpl/$CI_PROJECT_NAME
script: before_script:
- docker build -t clarinpl/speller2 . - ''
- echo $DOCKER_PASSWORD > pass.txt script:
- cat pass.txt | docker login --username $DOCKER_USERNAME --password-stdin - docker build -t $DOCKERHUB_NAME .
- rm pass.txt - echo $DOCKER_PASSWORD > pass.txt
- docker push clarinpl/speller2 - cat pass.txt | docker login --username $DOCKER_USERNAME --password-stdin
- rm pass.txt
- docker push $DOCKERHUB_NAME
- 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 image tag $DOCKERHUB_NAME $CI_REGISTRY_IMAGE:latest
- docker push $CI_REGISTRY_IMAGE
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