Skip to content
Snippets Groups Projects
Commit 637b7d42 authored by jurgenhaas's avatar jurgenhaas
Browse files

Delay main pipeline for Drupal sites by a configurable amount of time, defaults to 10 seconds

parent 5cb22c80
No related branches found
No related tags found
No related merge requests found
variables:
COMPOSE_PROJECT_NAME: ${PROJECT_NAME}_$CI_COMMIT_REF_SLUG
DELAY_MAIN_PIPELINE: 10 seconds
DISABLE_CI_TESTS: 0
DISABLE_CI_TEST_BACKSTOP: 1
DISABLE_CI_TEST_BEHAT: 0
......@@ -54,6 +55,9 @@ include:
ref: main
file: '/test-and-deploy.yml'
Delay Main Pipeline:
extends: '.delay'
Validate Environment:
extends: '.prerequisites'
......
......@@ -136,6 +136,21 @@ Debug:
- ${UPDATE_DB_COMMAND}
- drush cr
.delay:
stage: validation
tags:
- default
image: registry.lakedrops.com/docker/gitlab-drupal-ci/php-${PHP_MAJOR_VERSION}.${PHP_MINOR_VERSION}
cache: {}
variables:
GIT_STRATEGY: none
script: echo "Delaying execution by ${DELAY_MAIN_PIPELINE}"
when: delayed
start_in: ${DELAY_MAIN_PIPELINE}
only:
refs:
- main
.prerequisites:
stage: validation
tags:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment