From 19776b5000e36f9bc7e04fb5a82aca00f24cf857 Mon Sep 17 00:00:00 2001 From: Tomasz Walkowiak <tomasz.walkowiak@pwr.edu.pl> Date: Sun, 12 Jul 2020 14:26:37 +0000 Subject: [PATCH] Update .gitlab-ci.yml: build docker huba image --- .gitlab-ci.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b90b766..225d388 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -4,6 +4,11 @@ cache: paths: - .tox +stages: + - check_style + - build + + before_script: - pip install tox==2.9.1 @@ -14,5 +19,22 @@ pep8: docstyle: script: - tox -v -e docstyle + +build_image: + stage: build + image: docker:18.09.7 + only: + - master + services: + - docker:18.09.7-dind + before_script: + - '' + script: + - docker build -t clarinpl/cluto . + - echo $DOCKER_PASSWORD > pass.txt + - cat pass.txt | docker login --username $DOCKER_USERNAME --password-stdin + - rm pass.txt + - docker push clarinpl/cluto + -- GitLab