gitlab-org--gitlab-foss/.gitlab/ci/global.gitlab-ci.yml

77 lines
1.6 KiB
YAML
Raw Normal View History

.default-tags:
tags:
- gitlab-org
.default-retry:
2019-04-12 04:56:38 -04:00
retry:
max: 2 # This is confusing but this means "3 runs at max".
2019-04-12 04:56:38 -04:00
when:
- unknown_failure
- api_failure
- runner_system_failure
.default-before_script:
before_script:
- date
- source scripts/utils.sh
- source scripts/prepare_build.sh
- date
2019-04-12 04:56:38 -04:00
# Jobs that only need to pull cache
.default-cache:
2019-04-12 04:56:38 -04:00
cache:
key: "debian-stretch-ruby-2.6.3-node-12.x"
paths:
- vendor/ruby
- .yarn-cache/
- vendor/gitaly-ruby
2019-04-12 04:56:38 -04:00
policy: pull
.except-docs:
2019-04-12 04:56:38 -04:00
except:
refs:
- /(^docs[\/-].+|.+-docs$)/
.except-qa:
except:
refs:
- /(^qa[\/-].*|.*-qa$)/
2019-04-12 04:56:38 -04:00
.except-docs-qa:
except:
refs:
- /(^docs[\/-].+|.+-docs$)/
- /(^qa[\/-].*|.*-qa$)/
.except-docs-qa-geo:
except:
refs:
- /(^docs[\/-].+|.+-docs$)/
- /(^qa[\/-].*|.*-qa$)/
- /(^geo[\/-].*|.*-geo$)/
.review-only:
only:
refs:
- branches@gitlab-org/gitlab-foss
- branches@gitlab-org/gitlab
kubernetes: active
except:
refs:
- master
- /^\d+-\d+-auto-deploy-\d+$/
- /(^docs[\/-].+|.+-docs$)/
.use-pg:
services:
- name: postgres:9.6.14
command: ["postgres", "-c", "fsync=off", "-c", "synchronous_commit=off", "-c", "full_page_writes=off"]
- name: redis:alpine
.use-pg-10:
image: "dev.gitlab.org:5005/gitlab/gitlab-build-images:ruby-2.6.3-golang-1.11-git-2.22-chrome-73.0-node-12.x-yarn-1.16-postgresql-10-graphicsmagick-1.3.33"
services:
- name: postgres:10.9
command: ["postgres", "-c", "fsync=off", "-c", "synchronous_commit=off", "-c", "full_page_writes=off"]
- name: redis:alpine