2020-09-27 03:20:53 +00:00
|
|
|
.deploy_job_template:
|
2021-02-09 04:31:38 +00:00
|
|
|
extends: .before_script_no_sync_submodule
|
2019-06-28 16:39:21 +00:00
|
|
|
stage: deploy
|
2021-05-26 08:44:20 +00:00
|
|
|
image: $ESP_ENV_IMAGE
|
2020-09-27 03:20:53 +00:00
|
|
|
tags:
|
|
|
|
- deploy
|
|
|
|
|
2019-06-28 16:39:21 +00:00
|
|
|
push_to_github:
|
2020-09-27 03:20:53 +00:00
|
|
|
extends:
|
|
|
|
- .deploy_job_template
|
2021-02-16 16:45:06 +00:00
|
|
|
- .before_script_minimal
|
2023-10-18 04:55:53 +00:00
|
|
|
- .rules:push_to_github
|
|
|
|
needs:
|
|
|
|
- check_submodule_sync
|
2019-06-28 16:39:21 +00:00
|
|
|
script:
|
2020-09-27 03:20:53 +00:00
|
|
|
- add_github_ssh_keys
|
2019-06-28 16:39:21 +00:00
|
|
|
- git remote remove github &>/dev/null || true
|
|
|
|
- git remote add github git@github.com:espressif/esp-idf.git
|
|
|
|
- tools/ci/push_to_github.sh
|
|
|
|
|
2021-02-26 07:16:55 +00:00
|
|
|
check_submodule_sync:
|
|
|
|
extends:
|
|
|
|
- .deploy_job_template
|
|
|
|
- .rules:test:submodule
|
|
|
|
tags:
|
|
|
|
- github_sync
|
|
|
|
retry: 2
|
|
|
|
variables:
|
|
|
|
GIT_STRATEGY: clone
|
|
|
|
SUBMODULES_TO_FETCH: "none"
|
|
|
|
PUBLIC_IDF_URL: "https://github.com/espressif/esp-idf.git"
|
2021-05-21 07:31:34 +00:00
|
|
|
dependencies: []
|
2021-02-26 07:16:55 +00:00
|
|
|
script:
|
|
|
|
- git submodule deinit --force .
|
|
|
|
# setting the default remote URL to the public one, to resolve relative location URLs
|
|
|
|
- git config remote.origin.url ${PUBLIC_IDF_URL}
|
|
|
|
# check if all submodules are correctly synced to public repository
|
|
|
|
- git submodule init
|
|
|
|
- git config --get-regexp '^submodule\..*\.url$' || true
|
|
|
|
- git submodule update --recursive
|
|
|
|
- echo "IDF was cloned from ${PUBLIC_IDF_URL} completely"
|