Skip to content
Snippets Groups Projects
Commit abc5a6ff authored by Michał Pogoda's avatar Michał Pogoda
Browse files

fix gitlab ci

parent fbe7e76e
No related branches found
No related tags found
1 merge request!10Anonimizer v2
Pipeline #11108 failed
...@@ -3,23 +3,26 @@ cache: ...@@ -3,23 +3,26 @@ 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:
- develop - master
services: services:
- 'docker:18.09.7-dind' - 'docker:18.09.7-dind'
variables: variables:
...@@ -31,9 +34,7 @@ build_image: ...@@ -31,9 +34,7 @@ build_image:
- echo $DOCKER_PASSWORD > pass.txt - echo $DOCKER_PASSWORD > pass.txt
- cat pass.txt | docker login --username $DOCKER_USERNAME --password-stdin - cat pass.txt | docker login --username $DOCKER_USERNAME --password-stdin
- rm pass.txt - rm pass.txt
# - docker push $DOCKERHUB_NAME
- 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 image tag $DOCKERHUB_NAME $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG
# - docker image tag $DOCKERHUB_NAME $CI_REGISTRY_IMAGE:develop
- docker push $CI_REGISTRY_IMAGE - docker push $CI_REGISTRY_IMAGE
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment