Explorar o código

ci: Don't push to Github or deploy docs on customized pipelines

BOT_TRIGGER_WITH_LABEL must be empty (meaning all tests are running).
Angus Gratton %!s(int64=5) %!d(string=hai) anos
pai
achega
469b7bc4cf
Modificáronse 1 ficheiros con 8 adicións e 3 borrados
  1. 8 3
      tools/ci/config/deploy.yml

+ 8 - 3
tools/ci/config/deploy.yml

@@ -53,9 +53,12 @@ push_to_github:
   tags:
     - deploy
   only:
-    - master
-    - /^release\/v/
-    - /^v\d+\.\d+(\.\d+)?($|-)/
+    refs:
+      - master
+      - /^release\/v/
+      - /^v\d+\.\d+(\.\d+)?($|-)/
+    variables:
+      - $BOT_TRIGGER_WITH_LABEL == null
   when: on_success
   dependencies: []
   extends: .before_script_lesser
@@ -124,6 +127,8 @@ deploy_docs_production:
       - master
       - /^release\/v/
       - /^v\d+\.\d+(\.\d+)?($|-)/
+    variables:
+      - $BOT_TRIGGER_WITH_LABEL == null
   variables:
     TYPE: "preview"
     DOCS_DEPLOY_PRIVATEKEY: "$DOCS_PROD_DEPLOY_KEY"