diff options
author | Ondrej Holy <oholy@redhat.com> | 2019-09-13 14:15:48 +0200 |
---|---|---|
committer | Ondrej Holy <oholy@redhat.com> | 2019-09-13 14:33:13 +0200 |
commit | 45a961b3c5c2123582e0a9de6e0c76ae9a97d87e (patch) | |
tree | d55e74ebdefef88a4dfbeb1314320763aa99d710 | |
parent | e4dbcf290cca0f4d7b73e4b515a694a6eec627d8 (diff) | |
download | gvfs-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.
-rw-r--r-- | .gitlab-ci.yml | 3 |
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" |