2022-09-12 16:08:49 +00:00
|
|
|
pipeline:
|
|
|
|
master:
|
|
|
|
image: machines/ssh
|
|
|
|
commands:
|
|
|
|
- mkdir -p ~/.ssh
|
2022-09-12 17:10:38 +00:00
|
|
|
- echo "$PRIVKEY $privkey" > ~/.ssh/id_rsa
|
2022-09-12 16:38:30 +00:00
|
|
|
- chmod 700 ~/.ssh && chmod 600 ~/.ssh/id_rsa
|
2022-10-06 17:13:17 +00:00
|
|
|
- apt update && apt install iproute2 && ip a
|
2022-09-16 17:26:54 +00:00
|
|
|
- ssh websiteupdate@172.19.0.1 -i ~/.ssh/id_rsa "cd /websiteupdate/website && git reset --hard origin/master && git config pull.rebase true && git pull"
|
2022-09-12 17:10:38 +00:00
|
|
|
secrets: [ privkey ]
|