-
Notifications
You must be signed in to change notification settings - Fork 173
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6dc11ba
commit 43bdc46
Showing
2 changed files
with
38 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -109,4 +109,22 @@ deploy_esp32p4_github: | |
# - cd ../slave | ||
# - compote component upload --allow-existing --name esp_hosted_slave --namespace mantriyogesh --project-dir ./ | ||
|
||
deploy_ext_component_github: | ||
stage: deploy | ||
image: $CI_DOCKER_REGISTRY/esp32-ci-env | ||
tags: | ||
- deploy | ||
when: manual | ||
only: | ||
- feature/ext_component_host | ||
script: | ||
- mkdir -p ~/.ssh | ||
- chmod 700 ~/.ssh | ||
- echo -n $GH_KEY > ~/.ssh/id_rsa_base64 | ||
- base64 --decode --ignore-garbage ~/.ssh/id_rsa_base64 > ~/.ssh/id_rsa | ||
- chmod 600 ~/.ssh/id_rsa | ||
- echo -e "Host github.com\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config | ||
- git remote remove github &>/dev/null || true | ||
- git remote add github [email protected]:espressif/esp-hosted.git | ||
- git push -f github "${CI_COMMIT_SHA}:refs/heads/${CI_COMMIT_REF_NAME}" | ||
|