debian-mirror-gitlab/.gitlab/ci/global.gitlab-ci.yml

128 lines
3.7 KiB
YAML
Raw Normal View History

2019-12-04 20:38:33 +05:30
.default-retry:
2019-07-31 22:56:46 +05:30
retry:
2019-09-04 21:01:54 +05:30
max: 2 # This is confusing but this means "3 runs at max".
2019-07-31 22:56:46 +05:30
when:
- unknown_failure
- api_failure
- runner_system_failure
2020-03-13 15:44:24 +05:30
- job_execution_timeout
- stuck_or_timeout_failure
2019-07-31 22:56:46 +05:30
2019-12-04 20:38:33 +05:30
.default-before_script:
before_script:
2020-03-13 15:44:24 +05:30
- '[ "$FOSS_ONLY" = "1" ] && rm -rf ee/ qa/spec/ee/ qa/qa/specs/features/ee/ qa/qa/ee/ qa/qa/ee.rb'
2019-12-21 20:55:43 +05:30
- export GOPATH=$CI_PROJECT_DIR/.go
- mkdir -p $GOPATH
2019-12-04 20:38:33 +05:30
- source scripts/utils.sh
- source scripts/prepare_build.sh
2019-07-31 22:56:46 +05:30
2020-06-23 00:09:42 +05:30
.rails-cache:
2019-07-31 22:56:46 +05:30
cache:
2020-07-28 23:09:34 +05:30
key: "rails-v2"
2019-12-04 20:38:33 +05:30
paths:
2020-06-23 00:09:42 +05:30
- vendor/ruby/
- vendor/gitaly-ruby/
- .go/pkg/mod/
2019-07-31 22:56:46 +05:30
policy: pull
2020-06-23 00:09:42 +05:30
.static-analysis-cache:
cache:
key: "static-analysis-v1"
paths:
- vendor/ruby/
- node_modules/
- tmp/rubocop_cache/
policy: pull
.qa-cache:
2020-04-22 19:07:51 +05:30
cache:
2020-06-23 00:09:42 +05:30
key: "qa-v1"
2020-05-24 23:13:21 +05:30
paths:
2020-06-23 00:09:42 +05:30
- qa/vendor/ruby/
2020-05-24 23:13:21 +05:30
policy: pull
2019-12-21 20:55:43 +05:30
2020-05-24 23:13:21 +05:30
.yarn-cache:
2020-04-22 19:07:51 +05:30
cache:
2020-06-23 00:09:42 +05:30
key: "yarn-v1"
2020-05-24 23:13:21 +05:30
paths:
- node_modules/
2020-06-23 00:09:42 +05:30
- tmp/cache/webpack-dlls/
policy: pull
.assets-compile-cache:
cache:
key: "assets-compile-${NODE_ENV}-v1"
paths:
- vendor/ruby/
- node_modules/
- assets-hash.txt
- public/assets/webpack/
- tmp/cache/assets/sprockets/
- tmp/cache/babel-loader/
- tmp/cache/vue-loader/
- tmp/cache/webpack-dlls/
policy: pull
2019-07-31 22:56:46 +05:30
2020-04-08 14:13:33 +05:30
.use-pg11:
2020-10-24 23:57:45 +05:30
image: "registry.gitlab.com/gitlab-org/gitlab-build-images:ruby-2.6.6-golang-1.14-git-2.28-lfs-2.9-chrome-84-node-12.x-yarn-1.21-postgresql-11-graphicsmagick-1.3.34"
2020-04-08 14:13:33 +05:30
services:
- name: postgres:11.6
command: ["postgres", "-c", "fsync=off", "-c", "synchronous_commit=off", "-c", "full_page_writes=off"]
2020-10-24 23:57:45 +05:30
- name: redis:4.0-alpine
2020-04-08 14:13:33 +05:30
variables:
POSTGRES_HOST_AUTH_METHOD: trust
2019-09-30 21:07:59 +05:30
2020-07-28 23:09:34 +05:30
.use-pg12:
2020-10-24 23:57:45 +05:30
image: "registry.gitlab.com/gitlab-org/gitlab-build-images:ruby-2.6.6-golang-1.14-git-2.28-lfs-2.9-chrome-84-node-12.x-yarn-1.21-postgresql-12-graphicsmagick-1.3.34"
2020-07-28 23:09:34 +05:30
services:
- name: postgres:12
command: ["postgres", "-c", "fsync=off", "-c", "synchronous_commit=off", "-c", "full_page_writes=off"]
2020-10-24 23:57:45 +05:30
- name: redis:4.0-alpine
2020-07-28 23:09:34 +05:30
variables:
POSTGRES_HOST_AUTH_METHOD: trust
2020-04-08 14:13:33 +05:30
.use-pg11-ee:
2020-10-24 23:57:45 +05:30
image: "registry.gitlab.com/gitlab-org/gitlab-build-images:ruby-2.6.6-golang-1.14-git-2.28-lfs-2.9-chrome-84-node-12.x-yarn-1.21-postgresql-11-graphicsmagick-1.3.34"
2020-04-08 14:13:33 +05:30
services:
- name: postgres:11.6
command: ["postgres", "-c", "fsync=off", "-c", "synchronous_commit=off", "-c", "full_page_writes=off"]
2020-10-24 23:57:45 +05:30
- name: redis:4.0-alpine
2020-04-08 14:13:33 +05:30
- name: elasticsearch:6.4.2
variables:
POSTGRES_HOST_AUTH_METHOD: trust
2020-04-22 19:07:51 +05:30
2020-07-28 23:09:34 +05:30
.use-pg12-ee:
2020-10-24 23:57:45 +05:30
image: "registry.gitlab.com/gitlab-org/gitlab-build-images:ruby-2.6.6-golang-1.14-git-2.28-lfs-2.9-chrome-84-node-12.x-yarn-1.21-postgresql-12-graphicsmagick-1.3.34"
2020-07-28 23:09:34 +05:30
services:
- name: postgres:12
command: ["postgres", "-c", "fsync=off", "-c", "synchronous_commit=off", "-c", "full_page_writes=off"]
2020-10-24 23:57:45 +05:30
- name: redis:4.0-alpine
2020-07-28 23:09:34 +05:30
- name: elasticsearch:6.4.2
variables:
POSTGRES_HOST_AUTH_METHOD: trust
2020-04-22 19:07:51 +05:30
.use-kaniko:
image:
2020-05-24 23:13:21 +05:30
name: gcr.io/kaniko-project/executor:debug-v0.20.0
2020-04-22 19:07:51 +05:30
entrypoint: [""]
before_script:
2020-06-23 00:09:42 +05:30
- source scripts/utils.sh
2020-05-24 23:13:21 +05:30
- mkdir -p /kaniko/.docker
2020-04-22 19:07:51 +05:30
- echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
2020-04-08 14:13:33 +05:30
2020-03-13 15:44:24 +05:30
.as-if-foss:
2019-12-21 20:55:43 +05:30
variables:
FOSS_ONLY: '1'
2020-04-22 19:07:51 +05:30
.use-docker-in-docker:
image: docker:${DOCKER_VERSION}
services:
- docker:${DOCKER_VERSION}-dind
variables:
DOCKER_DRIVER: overlay2
DOCKER_HOST: tcp://docker:2375
DOCKER_TLS_CERTDIR: ""
tags:
# See https://gitlab.com/gitlab-com/www-gitlab-com/-/issues/7019 for tag descriptions
- gitlab-org-docker