2023-11-23 01:12:34 +00:00
|
|
|
steps:
|
|
|
|
update:
|
2023-05-23 19:37:10 +00:00
|
|
|
image: machines/ssh
|
|
|
|
commands:
|
|
|
|
- mkdir -p ~/.ssh
|
2023-05-23 19:55:20 +00:00
|
|
|
- echo "$PRIVKEY" > ~/.ssh/id_ed25519
|
2023-05-23 19:39:54 +00:00
|
|
|
- chmod 700 ~/.ssh && chmod 600 ~/.ssh/id_ed25519
|
2023-12-17 10:09:47 +00:00
|
|
|
- ssh websiteupdate@172.17.0.1 -i ~/.ssh/id_ed25519 "cd /websiteupdate/wiki && git reset --hard origin/master && git config pull.rebase true && git pull"
|
|
|
|
secrets: [ privkey ]
|
|
|
|
build:
|
|
|
|
image: machines/ssh
|
|
|
|
commands:
|
2023-12-17 10:11:11 +00:00
|
|
|
- mkdir -p ~/.ssh
|
2023-12-17 10:09:47 +00:00
|
|
|
- echo "$PRIVKEY" > ~/.ssh/id_ed25519
|
|
|
|
- chmod 700 ~/.ssh && chmod 600 ~/.ssh/id_ed25519
|
2023-12-17 10:19:19 +00:00
|
|
|
- ssh websiteupdate@172.17.0.1 -i ~/.ssh/id_ed25519 "cd /websiteupdate/wiki && make"
|
2023-05-23 19:37:10 +00:00
|
|
|
secrets: [ privkey ]
|