浏览代码

Only run "update" job from scheduled pipelines

Stop attempting to unconditionally mirror the tor repository in GitLab
CI.  This prevented developers from enabling GitLab CI on master
because the "update" job would attempt to run, causing an unuseful CI
failure.  Fixes bug 23755.
Taylor Yu 6 年之前
父节点
当前提交
d5d811e2d0
共有 2 个文件被更改,包括 7 次插入1 次删除
  1. 3 1
      .gitlab-ci.yml
  2. 4 0
      changes/bug23755

+ 3 - 1
.gitlab-ci.yml

@@ -10,6 +10,8 @@ build:
     - "make install"
     - "make install"
 
 
 update:
 update:
+  only:
+    - schedules
   script: 
   script: 
     - "apt-get install -y --fix-missing git openssh-client"
     - "apt-get install -y --fix-missing git openssh-client"
     
     
@@ -36,4 +38,4 @@ update:
     - "mkdir tor"
     - "mkdir tor"
     - "cd tor" 
     - "cd tor" 
     - git clone --bare https://git.torproject.org/tor.git
     - git clone --bare https://git.torproject.org/tor.git
-    - git push --mirror git@oniongit.eu:network/tor.git
+    - git push --mirror git@oniongit.eu:network/tor.git

+ 4 - 0
changes/bug23755

@@ -0,0 +1,4 @@
+  o Minor bugfixes (testing):
+    - Stop unconditionally mirroring the tor repository in GitLab CI.
+      This prevented developers from enabling GitLab CI on master.
+      Fixes bug 23755; bugfix on 0.3.2.2-alpha.