Просмотр исходного кода

Merge branch 'bugfix/ci_push_to_github_on_label' into 'master'

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

See merge request espressif/esp-idf!8870
Angus Gratton 5 лет назад
Родитель
Сommit
7cbdc3ea66
1 измененных файлов с 8 добавлено и 3 удалено
  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"