Fix .ssh/known_hosts
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
91946267b5
commit
0ff87a7981
1 changed files with 3 additions and 3 deletions
|
@ -21,9 +21,9 @@ pipeline:
|
||||||
- pip3 install -r requirements.txt
|
- pip3 install -r requirements.txt
|
||||||
- ./build.py
|
- ./build.py
|
||||||
- export SSH_PRIVKEY_FILE=.ssh/id_ed25519
|
- export SSH_PRIVKEY_FILE=.ssh/id_ed25519
|
||||||
- export SSH_KNOWN_HOSTS=.ssh/known_hosts
|
- export SSH_KNOWN_HOSTS_FILE=.ssh/known_hosts
|
||||||
- mkdir -p .ssh && chmod 0700 .ssh
|
- mkdir -p .ssh && chmod 0700 .ssh
|
||||||
- echo "$SSH_PRIVATE_KEY" > "$SSH_PRIVKEY_FILE"
|
- echo "$SSH_PRIVATE_KEY" > "$SSH_PRIVKEY_FILE"
|
||||||
- echo "$SSH_KNOWN_HOSTS" > "$SSH_KNOWN_HOSTS"
|
- echo "$SSH_KNOWN_HOSTS" > "$SSH_KNOWN_HOSTS_FILE"
|
||||||
- chmod 0600 "$SSH_PRIVKEY_FILE"
|
- chmod 0600 "$SSH_PRIVKEY_FILE"
|
||||||
- rsync -v --recursive --delete -e "ssh -vvv -oUserKnownHostsFile=$SSH_KNOWN_HOSTS -i $SSH_PRIVKEY_FILE" "out/" "$RSYNC_DEST"
|
- rsync -v --recursive --delete -e "ssh -vvv -oUserKnownHostsFile=$SSH_KNOWN_HOSTS_FILE -i $SSH_PRIVKEY_FILE" "out/" "$RSYNC_DEST"
|
||||||
|
|
Loading…
Reference in a new issue