stages: - buildimage - checks - tests - deploytest variables: APP_IMAGE: gitlab.princip.cz:4567/$CI_PROJECT_PATH/app-$CI_COMMIT_REF_NAME Build Application (docker) Image: stage: buildimage image: docker:git before_script: - docker login -u gitlab-ci-token -p $CI_JOB_TOKEN gitlab.princip.cz:4567 script: - docker build -t $APP_IMAGE . - docker push $APP_IMAGE except: - tags Static Checks: stage: checks image: $APP_IMAGE before_script: - pip install flake8 script: - make pep8