Update .gitea/workflows/deploy.yml
Some checks failed
Deploy (stellaamor) / deploy (push) Has been cancelled

This commit is contained in:
2025-10-08 04:51:15 -04:00
parent c08f8a4cfe
commit 6a3608fe1f

View File

@@ -63,18 +63,19 @@ jobs:
- name: Write SSH key - name: Write SSH key
run: | run: |
set -eu mkdir -p ~/.ssh
install -d -m 700 ~/.ssh chmod 700 ~/.ssh
printf '%s\n' "${SSH_KEY}" > ~/.ssh/id_ed25519 umask 077
sed -i 's/\r$//' ~/.ssh/id_ed25519 printf "%s" "${SSH_KEY}" > ~/.ssh/id_ed25519
chmod 600 ~/.ssh/id_ed25519 chmod 600 ~/.ssh/id_ed25519
if [ -n "${SSH_KNOWN_HOSTS}" ]; then if [ -n "${SSH_KNOWN_HOSTS}" ]; then
printf '%s\n' "${SSH_KNOWN_HOSTS}" > ~/.ssh/known_hosts printf "%s\n" "${SSH_KNOWN_HOSTS}" > ~/.ssh/known_hosts
chmod 644 ~/.ssh/known_hosts chmod 644 ~/.ssh/known_hosts
else else
printf 'StrictHostKeyChecking no\n' >> ~/.ssh/config echo "StrictHostKeyChecking no" >> ~/.ssh/config
fi fi
- name: Upload & activate atomically - name: Upload & activate atomically
run: | run: |
set -euo pipefail set -euo pipefail