ClickHouse/.gitlab-ci.yml
Pavel Litvinenko 7db8e99300 Поддержка Mongo ObjectId (#1833)
* update build script (gcc-5 -> gcc-7)

* add gitlab-ci

* sadly but my gitlab worker doesn't have make

* fix gitlkab-ci config

* fix the input device is not a TTY

* set runner tag to docker

* allow to use ObjectId in clickhouse (oid will be converted to string)

* update ci config

* code review
2018-02-01 14:26:44 +03:00

42 lines
1.3 KiB
YAML

stages:
- build
variables:
GIT_SUBMODULE_STRATEGY: recursive
# NEXUS_USER:
# NEXUS_PASSWORD:
# NEXUS_HOST:
builder:
stage: builder
when: manual
services:
- docker:dind
before_script:
- docker info
- apk add --no-cache git curl binutils ca-certificates
- docker login -u gitlab -p nopasswd $CI_REGISTRY
- docker build -t yandex/clickhouse-builder ./docker/builder
script:
- docker tag yandex/clickhouse-builder $CI_REGISTRY/yandex/clickhouse-builder
- docker push $CI_REGISTRY/yandex/clickhouse-builder
tags:
- docker
build:
stage: build
services:
- docker:dind
before_script:
- cd ./docker/builder
- docker info
- docker build -t yandex/clickhouse-builder .
script:
- docker run --rm --volumes-from "${HOSTNAME}-build" --workdir "${CI_PROJECT_DIR}" --env CI_PROJECT_DIR=${CI_PROJECT_DIR} $CI_REGISTRY/yandex/clickhouse-builder /build_gitlab_ci.sh
# # You can upload your binary to nexus
# after_script:
# - curl -v --keepalive-time 60 --keepalive --user "$NEXUS_USER:$NEXUS_PASSWORD" -XPUT "http://$NEXUS_HOST/repository/binaries/$CI_PROJECT_NAME" --upload-file ./dbms/src/Server/clickhouse
# Or download artifacts from gitlab
artifacts:
paths:
- ./dbms/src/Server/clickhouse
expire_in: 1 day
tags:
- docker