Merge branch 'ci/change_deploy_pre_needs' into 'master'

ci: deploy docs to preview as soon as build doc jobs are done

See merge request espressif/esp-idf!17598
This commit is contained in:
Anton Maklakov 2022-03-29 16:42:08 +08:00
commit 39d82327d2

View File

@ -158,7 +158,6 @@ build_docs_pdf:
tags:
- deploy
- shiny
dependencies: []
script:
- add_doc_server_ssh_keys $DOCS_DEPLOY_PRIVATEKEY $DOCS_DEPLOY_SERVER $DOCS_DEPLOY_SERVER_USER
- export GIT_VER=$(git describe --always ${PIPELINE_COMMIT_SHA} --)
@ -174,10 +173,13 @@ deploy_docs_preview:
- <<: *if-label-docs
- <<: *if-dev-push
changes: *patterns-docs-preview
dependencies:
- build_docs_html_fast
- build_docs_html_full
- build_docs_pdf
needs:
- job: build_docs_html_fast
optional: true
- job: build_docs_html_full
optional: true
- job: build_docs_pdf
optional: true
variables:
TYPE: "preview"
# older branches use DOCS_DEPLOY_KEY, DOCS_SERVER, DOCS_SERVER_USER, DOCS_PATH for preview server so we keep these names for 'preview'