2022-09-13 02:21:11 +00:00
|
|
|
pipeline:
|
|
|
|
master:
|
|
|
|
image: machines/ssh
|
|
|
|
commands:
|
|
|
|
- mkdir -p ~/.ssh
|
2023-05-23 20:04:28 +00:00
|
|
|
- echo "$PRIVKEY" > ~/.ssh/id_ed25519
|
|
|
|
- chmod 700 ~/.ssh && chmod 600 ~/.ssh/id_ed25519
|
|
|
|
- ssh websiteupdate@172.17.0.1 -i ~/.ssh/id_ed25519 "cd /websiteupdate/blog && git reset --hard origin/master && git config pull.rebase true && git pull && nix-shell -p gnumake -p pandoc -p libxslt -p htmlq --run make"
|
2022-09-13 02:21:11 +00:00
|
|
|
secrets: [ privkey ]
|