All checks were successful
ci/woodpecker/push/build-containers Pipeline was successful
22 lines
895 B
YAML
22 lines
895 B
YAML
when:
|
|
- event: manual
|
|
- event: cron
|
|
cron: update_submodules
|
|
|
|
steps:
|
|
- name: submodule update
|
|
secrets: [deploy_key]
|
|
image: gitea.simcop2387.info/simcop2387/debian-git-autocommit
|
|
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
|
|
- 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/unsloth-trainer.git
|
|
- GIT_TRACE=1 git push origin HEAD
|