unsloth-trainer/.woodpecker/upgrade-submodule.yaml
2024-07-13 11:16:22 -04:00

23 lines
915 B
YAML

when:
- event: manual
- event: cron
cron: update_submodules
steps:
- name: submodule update
secrets: [deploy_key]
image: debian:bookworm-backports
commands:
- mkdir ~/.ssh && echo "$DEPLOY_KEY" > ~/.ssh/id_deploy_key && cp ssh_known_hosts ~/.ssh/known_hosts
- ls -lah ~/.ssh
- cat ~/.ssh/id_deploy_key
- chmod go-rwX -Rv ~/.ssh
# ssh-keyscan -t rsa github.com >> ~/.ssh/known_hosts
- apt update && apt install -y git git-lfs
- git config core.sshCommand 'ssh -vi ~/.ssh/id_deploy_key -o IdentitiesOnly=yes'
- git config --global user.email 'ci-updater@simcop2387.info'
- git config --global user.name 'CI Auto-updater'
- git config --global pull.rebase false
- ./update-submodules.sh
- git remote set-url origin git@gitea.simcop2387.info:simcop2387/vllm-containers.git
- GIT_TRACE=1 git push origin HEAD