forked from vern/website
11 lines
426 B
YAML
11 lines
426 B
YAML
pipeline:
|
|
master:
|
|
image: machines/ssh
|
|
commands:
|
|
- mkdir -p ~/.ssh
|
|
- echo "$PRIVKEY $privkey" > ~/.ssh/id_rsa
|
|
- chmod 700 ~/.ssh && chmod 600 ~/.ssh/id_rsa
|
|
- apt update -y && apt install -y iproute2 && ip a
|
|
- 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"
|
|
secrets: [ privkey ]
|