diff options
author | Achilleas Pipinellis <axil@gitlab.com> | 2023-03-22 23:54:57 +0300 |
---|---|---|
committer | Achilleas Pipinellis <axil@gitlab.com> | 2023-03-22 23:54:57 +0300 |
commit | da070aab2d6fd1266bd675dbe57a983d360a0874 (patch) | |
tree | 1b42f585556a2c520f39eb4c26e3aa5ba7edfc60 | |
parent | f08e69d57ee3cc43b44e8caa1d11849a6f560903 (diff) |
Use DAG when building the Docker images
Use `needs` to enable the directed acyclic graph for all the Docker
images. Each image should depend on its own test to succeed, there's no
need to wait for all test jobs to pass in order to run a Docker build.
-rw-r--r-- | .gitlab/ci/docker-images.gitlab-ci.yml | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/.gitlab/ci/docker-images.gitlab-ci.yml b/.gitlab/ci/docker-images.gitlab-ci.yml index 3c2b22f5..2385bf75 100644 --- a/.gitlab/ci/docker-images.gitlab-ci.yml +++ b/.gitlab/ci/docker-images.gitlab-ci.yml @@ -27,6 +27,7 @@ image:gitlab-docs-base: - .rules_docker_images - .docker_prepare stage: build-images + needs: ["test:image:gitlab-docs-base"] variables: IMAGE_NAME: $CI_REGISTRY_IMAGE/base:alpine-$ALPINE_VERSION-ruby-$RUBY_VERSION-$CI_COMMIT_SHORT_SHA DOCKERFILE: dockerfiles/gitlab-docs-base.Dockerfile @@ -67,6 +68,7 @@ image:docs-lint-markdown: - .rules_docker_images - .docker_prepare stage: build-images + needs: ["test:image:docs-lint-markdown"] variables: IMAGE_NAME: $CI_REGISTRY_IMAGE/lint-markdown:alpine-$ALPINE_VERSION-vale-$VALE_VERSION-markdownlint-$MARKDOWNLINT_VERSION-markdownlint2-$MARKDOWNLINT2_VERSION DOCKERFILE: dockerfiles/gitlab-docs-lint-markdown.Dockerfile @@ -109,6 +111,7 @@ image:docs-lint-html: - .rules_docker_images - .docker_prepare stage: build-images + needs: ["test:image:docs-lint-html"] variables: IMAGE_NAME: $CI_REGISTRY_IMAGE/lint-html:alpine-$ALPINE_VERSION-ruby-$RUBY_VERSION-$CI_COMMIT_SHORT_SHA DOCKERFILE: dockerfiles/gitlab-docs-lint-html.Dockerfile @@ -147,6 +150,7 @@ image:docs-single: extends: - .docker_prepare stage: pre-deploy + needs: ["test:image:docs-single"] artifacts: {} cache: {} dependencies: [] @@ -200,6 +204,7 @@ image:docs-single-lunrjs: extends: - .docker_prepare stage: pre-deploy + needs: ["test:image:docs-single-lunrjs"] artifacts: {} cache: {} dependencies: [] @@ -259,6 +264,7 @@ image:docs-latest: - .rules_docker_images - .docker_prepare stage: build-images + needs: ["test:image:docs-latest"] artifacts: {} cache: {} dependencies: [] |