2019-08-26 20:41:55 +00:00
|
|
|
.default-retry:
|
2019-04-12 08:56:38 +00:00
|
|
|
retry:
|
2019-06-05 16:31:35 +00:00
|
|
|
max: 2 # This is confusing but this means "3 runs at max".
|
2019-04-12 08:56:38 +00:00
|
|
|
when:
|
|
|
|
- unknown_failure
|
|
|
|
- api_failure
|
|
|
|
- runner_system_failure
|
2020-02-06 09:09:06 +00:00
|
|
|
- job_execution_timeout
|
|
|
|
- stuck_or_timeout_failure
|
2019-04-12 08:56:38 +00:00
|
|
|
|
2019-08-26 20:41:55 +00:00
|
|
|
.default-before_script:
|
|
|
|
before_script:
|
|
|
|
- date
|
2020-01-23 12:08:38 +00:00
|
|
|
- '[ "$FOSS_ONLY" = "1" ] && rm -rf ee/ qa/spec/ee/ qa/qa/specs/features/ee/ qa/qa/ee/ qa/qa/ee.rb'
|
2019-09-24 15:06:34 +00:00
|
|
|
- export GOPATH=$CI_PROJECT_DIR/.go
|
|
|
|
- mkdir -p $GOPATH
|
2019-08-26 20:41:55 +00:00
|
|
|
- source scripts/utils.sh
|
|
|
|
- source scripts/prepare_build.sh
|
|
|
|
- date
|
2019-04-12 08:56:38 +00:00
|
|
|
|
|
|
|
# Jobs that only need to pull cache
|
2019-08-26 20:41:55 +00:00
|
|
|
.default-cache:
|
2019-04-12 08:56:38 +00:00
|
|
|
cache:
|
2020-05-01 06:09:57 +00:00
|
|
|
key: "debian-stretch-ruby-2.6.6-pg11-node-12.x"
|
2019-08-26 20:41:55 +00:00
|
|
|
paths:
|
2019-09-24 15:06:34 +00:00
|
|
|
- .go/pkg/mod
|
2019-08-26 20:41:55 +00:00
|
|
|
- vendor/ruby
|
|
|
|
- .yarn-cache/
|
|
|
|
- vendor/gitaly-ruby
|
2019-04-12 08:56:38 +00:00
|
|
|
policy: pull
|
|
|
|
|
2019-09-27 15:06:16 +00:00
|
|
|
.use-pg9:
|
2020-05-05 15:09:42 +00:00
|
|
|
image: "registry.gitlab.com/gitlab-org/gitlab-build-images:ruby-2.6.6-golang-1.14-git-2.26-lfs-2.9-chrome-73.0-node-12.x-yarn-1.21-postgresql-9.6-graphicsmagick-1.3.34"
|
2019-08-26 20:41:55 +00:00
|
|
|
services:
|
2020-02-17 12:09:20 +00:00
|
|
|
- name: postgres:9.6.17
|
2019-08-26 20:41:55 +00:00
|
|
|
command: ["postgres", "-c", "fsync=off", "-c", "synchronous_commit=off", "-c", "full_page_writes=off"]
|
|
|
|
- name: redis:alpine
|
2020-02-14 21:09:08 +00:00
|
|
|
variables:
|
|
|
|
POSTGRES_HOST_AUTH_METHOD: trust
|
2020-04-06 15:10:04 +00:00
|
|
|
cache:
|
2020-05-01 06:09:57 +00:00
|
|
|
key: "debian-stretch-ruby-2.6.6-pg9-node-12.x"
|
2019-08-26 20:41:55 +00:00
|
|
|
|
2019-09-27 15:06:16 +00:00
|
|
|
.use-pg10:
|
2020-05-05 15:09:42 +00:00
|
|
|
image: "registry.gitlab.com/gitlab-org/gitlab-build-images:ruby-2.6.6-golang-1.14-git-2.26-lfs-2.9-chrome-73.0-node-12.x-yarn-1.21-postgresql-10-graphicsmagick-1.3.34"
|
2019-08-26 20:41:55 +00:00
|
|
|
services:
|
2020-02-17 12:09:20 +00:00
|
|
|
- name: postgres:10.12
|
2019-08-26 20:41:55 +00:00
|
|
|
command: ["postgres", "-c", "fsync=off", "-c", "synchronous_commit=off", "-c", "full_page_writes=off"]
|
|
|
|
- name: redis:alpine
|
2020-02-14 21:09:08 +00:00
|
|
|
variables:
|
|
|
|
POSTGRES_HOST_AUTH_METHOD: trust
|
2020-04-06 15:10:04 +00:00
|
|
|
cache:
|
2020-05-01 06:09:57 +00:00
|
|
|
key: "debian-stretch-ruby-2.6.6-pg10-node-12.x"
|
2019-09-17 14:16:34 +00:00
|
|
|
|
2020-02-20 09:09:13 +00:00
|
|
|
.use-pg11:
|
2020-05-05 15:09:42 +00:00
|
|
|
image: "registry.gitlab.com/gitlab-org/gitlab-build-images:ruby-2.6.6-golang-1.14-git-2.26-lfs-2.9-chrome-73.0-node-12.x-yarn-1.21-postgresql-11-graphicsmagick-1.3.34"
|
2020-02-20 09:09:13 +00:00
|
|
|
services:
|
|
|
|
- name: postgres:11.6
|
|
|
|
command: ["postgres", "-c", "fsync=off", "-c", "synchronous_commit=off", "-c", "full_page_writes=off"]
|
|
|
|
- name: redis:alpine
|
|
|
|
variables:
|
|
|
|
POSTGRES_HOST_AUTH_METHOD: trust
|
2020-04-06 15:10:04 +00:00
|
|
|
cache:
|
2020-05-01 06:09:57 +00:00
|
|
|
key: "debian-stretch-ruby-2.6.6-pg11-node-12.x"
|
2020-02-20 09:09:13 +00:00
|
|
|
|
2019-09-27 15:06:16 +00:00
|
|
|
.use-pg9-ee:
|
2020-05-05 15:09:42 +00:00
|
|
|
image: "registry.gitlab.com/gitlab-org/gitlab-build-images:ruby-2.6.6-golang-1.14-git-2.26-lfs-2.9-chrome-73.0-node-12.x-yarn-1.21-postgresql-9.6-graphicsmagick-1.3.34"
|
2019-09-27 15:06:16 +00:00
|
|
|
services:
|
2020-02-17 12:09:20 +00:00
|
|
|
- name: postgres:9.6.17
|
2019-09-27 15:06:16 +00:00
|
|
|
command: ["postgres", "-c", "fsync=off", "-c", "synchronous_commit=off", "-c", "full_page_writes=off"]
|
|
|
|
- name: redis:alpine
|
2020-01-15 18:08:34 +00:00
|
|
|
- name: elasticsearch:6.4.2
|
2020-02-14 21:09:08 +00:00
|
|
|
variables:
|
|
|
|
POSTGRES_HOST_AUTH_METHOD: trust
|
2020-04-06 15:10:04 +00:00
|
|
|
cache:
|
2020-05-01 06:09:57 +00:00
|
|
|
key: "debian-stretch-ruby-2.6.6-pg9-node-12.x"
|
2019-09-27 15:06:16 +00:00
|
|
|
|
|
|
|
.use-pg10-ee:
|
2020-05-05 15:09:42 +00:00
|
|
|
image: "registry.gitlab.com/gitlab-org/gitlab-build-images:ruby-2.6.6-golang-1.14-git-2.26-lfs-2.9-chrome-73.0-node-12.x-yarn-1.21-postgresql-10-graphicsmagick-1.3.34"
|
2019-09-27 15:06:16 +00:00
|
|
|
services:
|
2020-02-17 12:09:20 +00:00
|
|
|
- name: postgres:10.12
|
2019-09-27 15:06:16 +00:00
|
|
|
command: ["postgres", "-c", "fsync=off", "-c", "synchronous_commit=off", "-c", "full_page_writes=off"]
|
|
|
|
- name: redis:alpine
|
2020-01-15 18:08:34 +00:00
|
|
|
- name: elasticsearch:6.4.2
|
2020-02-14 21:09:08 +00:00
|
|
|
variables:
|
|
|
|
POSTGRES_HOST_AUTH_METHOD: trust
|
2020-04-06 15:10:04 +00:00
|
|
|
cache:
|
2020-05-01 06:09:57 +00:00
|
|
|
key: "debian-stretch-ruby-2.6.6-pg10-node-12.x"
|
2019-09-27 15:06:16 +00:00
|
|
|
|
2020-02-20 09:09:13 +00:00
|
|
|
.use-pg11-ee:
|
2020-05-05 15:09:42 +00:00
|
|
|
image: "registry.gitlab.com/gitlab-org/gitlab-build-images:ruby-2.6.6-golang-1.14-git-2.26-lfs-2.9-chrome-73.0-node-12.x-yarn-1.21-postgresql-11-graphicsmagick-1.3.34"
|
2020-02-20 09:09:13 +00:00
|
|
|
services:
|
|
|
|
- name: postgres:11.6
|
|
|
|
command: ["postgres", "-c", "fsync=off", "-c", "synchronous_commit=off", "-c", "full_page_writes=off"]
|
|
|
|
- name: redis:alpine
|
|
|
|
- name: elasticsearch:6.4.2
|
|
|
|
variables:
|
|
|
|
POSTGRES_HOST_AUTH_METHOD: trust
|
2020-04-06 15:10:04 +00:00
|
|
|
cache:
|
2020-05-01 06:09:57 +00:00
|
|
|
key: "debian-stretch-ruby-2.6.6-pg11-node-12.x"
|
2020-02-20 09:09:13 +00:00
|
|
|
|
2020-04-21 15:21:10 +00:00
|
|
|
# Pin kaniko to v0.16.0 due to https://github.com/GoogleContainerTools/kaniko/issues/1162
|
|
|
|
.use-kaniko:
|
|
|
|
image:
|
|
|
|
name: gcr.io/kaniko-project/executor:debug-v0.16.0
|
|
|
|
entrypoint: [""]
|
|
|
|
before_script:
|
|
|
|
- echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
|
|
|
|
|
2020-01-28 18:08:35 +00:00
|
|
|
.as-if-foss:
|
2019-10-04 15:06:38 +00:00
|
|
|
variables:
|
2019-10-16 18:08:01 +00:00
|
|
|
FOSS_ONLY: '1'
|
2020-04-08 15:09:29 +00:00
|
|
|
|
|
|
|
.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
|