Fix .ssh/known_hosts
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
s3lph 2023-01-06 00:29:09 +01:00
parent 91946267b5
commit 0ff87a7981
Signed by: s3lph
GPG key ID: 8AC98A811E5BEFF5

View file

@ -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"