From 45a961b3c5c2123582e0a9de6e0c76ae9a97d87e Mon Sep 17 00:00:00 2001 From: Ondrej Holy Date: Fri, 13 Sep 2019 14:15:48 +0200 Subject: ci: Prevent starting the update-image job on forks The update-image job doesn't work as expected on forks, because the $CI_REGISTRY_ variables are not properly set. Let's limit this only to GNOME namespace to make it obvious. --- .gitlab-ci.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a09d4456..b7b436e9 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -47,3 +47,6 @@ update-image: - docker login $CI_REGISTRY -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD - docker push $CI_REGISTRY_IMAGE when: manual + only: + variables: + - $CI_PROJECT_NAMESPACE == "GNOME" -- cgit v1.2.1