2023-11-23 01:08:22 +00:00
|
|
|
steps:
|
2023-11-23 01:11:46 +00:00
|
|
|
update:
|
2023-11-23 01:10:07 +00:00
|
|
|
image: machines/ssh
|
2022-09-12 16:08:49 +00:00
|
|
|
commands:
|
|
|
|
- mkdir -p ~/.ssh
|
2023-05-23 20:03:10 +00:00
|
|
|
- echo "$PRIVKEY" > ~/.ssh/id_rsa
|
2022-09-12 16:38:30 +00:00
|
|
|
- chmod 700 ~/.ssh && chmod 600 ~/.ssh/id_rsa
|
2023-11-23 01:08:22 +00:00
|
|
|
- ssh websiteupdate@172.17.0.1 -i ~/.ssh/id_rsa "cd /websiteupdate/website && git reset --hard origin/master && git config pull.rebase true && git pull"
|
2023-11-23 01:11:46 +00:00
|
|
|
secrets: [ privkey ]
|