[gvfs/wip/oholy/ci-image-fix: 1/2] ci: Prevent starting the update-image job on forks
- From: Ondrej Holy <oholy src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gvfs/wip/oholy/ci-image-fix: 1/2] ci: Prevent starting the update-image job on forks
- Date: Fri, 13 Sep 2019 12:37:00 +0000 (UTC)
commit 45a961b3c5c2123582e0a9de6e0c76ae9a97d87e
Author: Ondrej Holy <oholy redhat com>
Date: Fri Sep 13 14:15:48 2019 +0200
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"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]