2020-09-27 03:20:53 +00:00
|
|
|
.deploy_job_template:
|
2019-06-28 16:39:21 +00:00
|
|
|
stage: deploy
|
2021-05-26 08:44:20 +00:00
|
|
|
image: $ESP_ENV_IMAGE
|
2023-11-01 11:43:19 +00:00
|
|
|
tags: [ deploy ]
|
2020-09-27 03:20:53 +00:00
|
|
|
|
2021-12-06 05:35:54 +00:00
|
|
|
# Check this before push_to_github
|
|
|
|
check_submodule_sync:
|
|
|
|
extends:
|
|
|
|
- .deploy_job_template
|
|
|
|
- .rules:test:submodule
|
|
|
|
stage: test_deploy
|
2023-11-01 11:43:19 +00:00
|
|
|
tags: [ brew, github_sync ]
|
2021-12-06 05:35:54 +00:00
|
|
|
retry: 2
|
|
|
|
variables:
|
2023-11-01 11:43:19 +00:00
|
|
|
# for brew runners, we always set GIT_STRATEGY to fetch
|
|
|
|
GIT_STRATEGY: fetch
|
2021-12-06 05:35:54 +00:00
|
|
|
SUBMODULES_TO_FETCH: "none"
|
|
|
|
PUBLIC_IDF_URL: "https://github.com/espressif/esp-idf.git"
|
|
|
|
dependencies: []
|
|
|
|
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"
|
|
|
|
|
2019-06-28 16:39:21 +00:00
|
|
|
push_to_github:
|
2020-09-27 03:20:53 +00:00
|
|
|
extends:
|
|
|
|
- .deploy_job_template
|
2023-09-26 11:24:26 +00:00
|
|
|
- .before_script:minimal
|
2023-10-18 04:55:53 +00:00
|
|
|
- .rules:push_to_github
|
2023-10-20 10:49:37 +00:00
|
|
|
needs:
|
|
|
|
- check_submodule_sync
|
2023-11-01 11:43:19 +00:00
|
|
|
tags: [ brew, github_sync ]
|
|
|
|
variables:
|
|
|
|
# for brew runners, we always set GIT_STRATEGY to fetch
|
|
|
|
GIT_STRATEGY: fetch
|
|
|
|
# github also need full record of commits
|
|
|
|
GIT_DEPTH: 0
|
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
|
|
|
|
|
2022-11-30 14:39:52 +00:00
|
|
|
deploy_update_SHA_in_esp-dockerfiles:
|
|
|
|
extends:
|
|
|
|
- .deploy_job_template
|
2023-10-20 10:49:37 +00:00
|
|
|
- .before_script:minimal
|
2023-05-17 02:12:15 +00:00
|
|
|
- .rules:protected-no_label-always
|
2023-10-20 10:49:37 +00:00
|
|
|
dependencies: []
|
2023-11-01 11:43:19 +00:00
|
|
|
variables:
|
|
|
|
GIT_DEPTH: 2
|
|
|
|
tags: [ shiny, build ]
|
2022-11-30 14:39:52 +00:00
|
|
|
script:
|
|
|
|
- 'curl --header "PRIVATE-TOKEN: ${ESPCI_SCRIPTS_TOKEN}" -o create_MR_in_esp_dockerfile.sh $GITLAB_HTTP_SERVER/api/v4/projects/1260/repository/files/create_MR_in_esp_dockerfile%2Fcreate_MR_in_esp_dockerfile.sh/raw\?ref\=master'
|
|
|
|
- chmod +x create_MR_in_esp_dockerfile.sh
|
|
|
|
- ./create_MR_in_esp_dockerfile.sh
|