Should work with echo
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

This commit is contained in:
Louis 2025-04-08 16:57:18 +02:00
parent 1888663b20
commit 5a97c315de

View file

@ -16,7 +16,7 @@ steps:
- mkdir -p ~/.ssh - mkdir -p ~/.ssh
- chmod 700 ~/.ssh - chmod 700 ~/.ssh
# Create the SSH key file # Create the SSH key file
- tee "$SSH_KEY" > ~/.ssh/id_ed25519 - echo "$SSH_KEY" > ~/.ssh/id_ed25519
- chmod 600 ~/.ssh/id_ed25519 - chmod 600 ~/.ssh/id_ed25519
- ssh-keyscan -t ed25519 git.polarolouis.fr >> ~/.ssh/known_hosts - ssh-keyscan -t ed25519 git.polarolouis.fr >> ~/.ssh/known_hosts
- chmod 644 ~/.ssh/known_hosts - chmod 644 ~/.ssh/known_hosts