summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorOndrej Holy <oholy@redhat.com>2019-09-13 14:15:48 +0200
committerOndrej Holy <oholy@redhat.com>2019-09-13 14:33:13 +0200
commit45a961b3c5c2123582e0a9de6e0c76ae9a97d87e (patch)
treed55e74ebdefef88a4dfbeb1314320763aa99d710 /.gitlab-ci.yml
parente4dbcf290cca0f4d7b73e4b515a694a6eec627d8 (diff)
downloadgvfs-45a961b3c5c2123582e0a9de6e0c76ae9a97d87e.tar.gz
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.
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml3
1 files changed, 3 insertions, 0 deletions
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"