From f4bfb14430ecea420f77a856c7253ec9935cf3e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vojt=C4=9Bch=20K=C3=A1n=C4=9B?= Date: Mon, 18 May 2020 17:04:41 +0200 Subject: [PATCH] Run docker-build in CI when manually requested only The mentioned job is run very often, because of issues in GitLab: https://gitlab.com/gitlab-org/gitlab/-/issues/27318 https://gitlab.com/gitlab-org/gitlab-foss/-/issues/59354 Given how rarely a rebuild is actually needed, I consider this to be an acceptable compromise. --- .gitlab-ci.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 8f53622..baade1d 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -79,10 +79,7 @@ docker-build: DOCKER_HOST: "tcp://docker:2375/" DOCKER_DRIVER: overlay2 GIT_SUBMODULE_STRATEGY: none - only: - changes: - - docker-compose.yml - - linting/**/* + when: manual before_script: - echo $CI_JOB_TOKEN | docker login -u gitlab-ci-token --password-stdin $CI_REGISTRY script: