26 lines
774 B
YAML
26 lines
774 B
YAML
push_to_github:
|
|
stage: deploy
|
|
only:
|
|
- master
|
|
- /^release\/v/
|
|
# when: on_success
|
|
image: $CI_DOCKER_REGISTRY/esp32-ci-env
|
|
tags:
|
|
- github_sync
|
|
variables:
|
|
GIT_STRATEGY: clone
|
|
SUBMODULES_TO_FETCH: "none"
|
|
dependencies: []
|
|
before_script:
|
|
- echo "skip default before_script"
|
|
script:
|
|
- mkdir -p ~/.ssh
|
|
- chmod 700 ~/.ssh
|
|
- echo -n $GH_PUSH_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 git@github.com:espressif/esp-brookesia.git
|
|
- ${COMPONENT_PATH}/.gitlab/tools/push_to_github.sh
|