2019-04-12 04:56:38 -04:00
|
|
|
.dedicated-runner:
|
|
|
|
retry:
|
2019-06-05 12:31:35 -04:00
|
|
|
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
|
|
|
|
tags:
|
|
|
|
- gitlab-org
|
|
|
|
|
|
|
|
.default-cache: &default-cache
|
2019-06-14 02:54:44 -04:00
|
|
|
key: "debian-stretch-ruby-2.6.3-node-12.x"
|
2019-04-12 04:56:38 -04:00
|
|
|
paths:
|
|
|
|
- vendor/ruby
|
|
|
|
- .yarn-cache/
|
|
|
|
- vendor/gitaly-ruby
|
|
|
|
|
|
|
|
.dedicated-runner-default-cache:
|
|
|
|
extends: .dedicated-runner
|
|
|
|
cache:
|
|
|
|
<<: *default-cache
|
|
|
|
|
|
|
|
# Jobs that only need to pull cache
|
|
|
|
.dedicated-pull-cache-job:
|
|
|
|
extends: .dedicated-runner
|
|
|
|
cache:
|
|
|
|
<<: *default-cache
|
|
|
|
policy: pull
|
|
|
|
stage: test
|
|
|
|
|
2019-06-25 04:57:33 -04:00
|
|
|
.no-docs:
|
2019-04-12 04:56:38 -04:00
|
|
|
except:
|
2019-07-01 11:04:19 -04:00
|
|
|
refs:
|
|
|
|
- /(^docs[\/-].*|.*-docs$)/
|
|
|
|
|
|
|
|
.no-docs-and-no-qa:
|
|
|
|
except:
|
|
|
|
refs:
|
|
|
|
- /(^docs[\/-].*|.*-docs$)/
|
|
|
|
- /(^qa[\/-].*|.*-qa$)/
|
2019-04-12 04:56:38 -04:00
|
|
|
|
2019-06-25 04:57:33 -04:00
|
|
|
.dedicated-no-docs-pull-cache-job:
|
|
|
|
extends:
|
|
|
|
- .dedicated-pull-cache-job
|
|
|
|
- .no-docs
|
|
|
|
|
2019-04-12 04:56:38 -04:00
|
|
|
.dedicated-no-docs-and-no-qa-pull-cache-job:
|
2019-07-01 11:04:19 -04:00
|
|
|
extends:
|
|
|
|
- .dedicated-pull-cache-job
|
|
|
|
- .no-docs-and-no-qa
|
2019-04-12 04:56:38 -04:00
|
|
|
|
|
|
|
# Jobs that do not need a DB
|
|
|
|
.dedicated-no-docs-no-db-pull-cache-job:
|
|
|
|
extends: .dedicated-no-docs-pull-cache-job
|
|
|
|
variables:
|
|
|
|
SETUP_DB: "false"
|
|
|
|
|
2019-06-25 04:57:33 -04:00
|
|
|
# Jobs that need a dedicated runner, with no cache
|
|
|
|
.dedicated-no-docs:
|
|
|
|
extends:
|
|
|
|
- .dedicated-runner
|
|
|
|
- .no-docs
|
|
|
|
|
2019-04-12 04:56:38 -04:00
|
|
|
.single-script-job-dedicated-runner:
|
|
|
|
extends: .dedicated-runner
|
2019-05-06 06:35:35 -04:00
|
|
|
image: ruby:2.6-alpine
|
2019-04-12 04:56:38 -04:00
|
|
|
stage: test
|
|
|
|
cache: {}
|
|
|
|
dependencies: []
|
|
|
|
variables:
|
|
|
|
GIT_STRATEGY: none
|
|
|
|
before_script:
|
|
|
|
# We don't clone the repo by using GIT_STRATEGY: none and only download the
|
|
|
|
# single script we need here so it's much faster than cloning.
|
|
|
|
- export SCRIPT_NAME="${SCRIPT_NAME:-$CI_JOB_NAME}"
|
|
|
|
- apk add --update openssl
|
|
|
|
- wget $CI_PROJECT_URL/raw/$CI_COMMIT_SHA/scripts/$SCRIPT_NAME
|
|
|
|
- chmod 755 $(basename $SCRIPT_NAME)
|