ddr-scores/.woodpecker.yml

28 lines
1.6 KiB
YAML
Raw Normal View History

2024-05-06 21:14:28 +00:00
steps:
2024-05-06 21:20:27 +00:00
- name: build
2024-05-06 20:49:53 +00:00
image: python:3-alpine
2024-05-06 21:20:27 +00:00
environment:
ssh_secret_key: { from_secret: ssh_secret_key }
2024-05-06 20:48:56 +00:00
commands:
2024-05-06 20:52:42 +00:00
- apk add openssh git
2024-05-06 20:48:56 +00:00
- pip install poetry
2024-05-06 20:51:31 +00:00
- poetry install --no-root
2024-05-06 22:27:19 +00:00
- poetry run jupyter nbconvert --to markdown --no-input --execute summary.ipynb
2024-05-06 20:48:56 +00:00
2024-05-06 20:57:51 +00:00
- mkdir ~/.ssh
- echo "[git.mzhang.io]:2222,[159.65.218.78]:2222 ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDGYl3iwLCcv1WZmnUUM1CXo8mQcwmP12PIPUfHRNzp2q08RoiUNQwB/Ot1HIfiF6gztmWgBtYzMmZjgvtXC3tO2ehjoWYVe4aEWF8YLRUkLyO/nd4bs4bpzDF3w/yDroQvcFRgaxoOlzmCNGmS2U1tH+Ji1NdVjdGiXMxrJs2B4PHYGvgcXg0rZb97ZvSSSCR/bt3yS8kZYHHiVq9Xzvg9euocr8Ao//drGYDoTzy7DhGAGkIF3nhJ26kvJGMFyIl98ii5yzTgOIK+ZiPEx+WeYm9JYIzHEeLUAThhzGABgOUPV6T5R9iA41p6UW96x0mmGO7iAybUT8KRYT1MoVCGRCvEtNXPDBLdvGnjDkHUBj8+RxHI1+kTDXGqciFZ+D7xUHDGae+kKFfC9aFgyW3UzvR53gDoMu9ueQjeoWP65Gkadjgac7fwAWbQ1BdAzObL9W1N9EqyTmR8hPlhTGmaILimEOO84hxEBjOltmZ1YWfea6hP2q3ebWKMrDUGNOEw9u9nNoJJOeiE00DwSvvuWmkzf6A3R9AaXQrAPG0hl4EebjgIvur4d3mutt4z6HeJgXApxEX7xh01BvhZLv1bWuJkSmQ/f/Pl+BMJCI2UojXS0C6SFrD2N5qP1MbjL62Ay9+92DBoclocq+Gi6zJYBtDPtlF1LPZqX3eb85O3Bw==" >> ~/.ssh/known_hosts
2024-05-06 21:15:41 +00:00
- echo "$${ssh_secret_key}" > ~/.ssh/id_ed25519
2024-05-06 21:01:54 +00:00
- chmod 600 ~/.ssh/id_ed25519
2024-05-06 21:20:27 +00:00
# - cat ~/.ssh/id_ed25519
# - xxd ~/.ssh/id_ed25519
2024-05-06 20:57:51 +00:00
2024-05-06 21:11:26 +00:00
- GIT_SSH_COMMAND="ssh -v" git clone ssh://git@git.mzhang.io:2222/michael/ddr-scores.wiki.git
2024-05-06 20:48:56 +00:00
- cp summary.md ddr-scores.wiki/Stats.md
2024-05-06 21:25:17 +00:00
- cp -r summary_files ddr-scores.wiki
2024-05-06 21:23:19 +00:00
- git config --global user.name "CI"
- git config --global user.email "ci@mzhang.io"
2024-05-06 20:48:56 +00:00
- (cd ddr-scores.wiki; git add . -A; git commit -m update; git push)
when:
event: push