Update .gitea/workflows/deploy.yml
Some checks failed
Deploy (stellaamor) / deploy (push) Has been cancelled
Some checks failed
Deploy (stellaamor) / deploy (push) Has been cancelled
This commit is contained in:
@@ -61,19 +61,15 @@ jobs:
|
||||
mv "$OUT" "release/${REL}.tar.gz"
|
||||
|
||||
|
||||
- name: Write SSH key
|
||||
- name: Use host SSH key
|
||||
run: |
|
||||
mkdir -p ~/.ssh
|
||||
chmod 700 ~/.ssh
|
||||
umask 077
|
||||
printf "%s" "${SSH_KEY}" > ~/.ssh/id_ed25519
|
||||
chmod 600 ~/.ssh/id_ed25519
|
||||
if [ -n "${SSH_KNOWN_HOSTS}" ]; then
|
||||
printf "%s\n" "${SSH_KNOWN_HOSTS}" > ~/.ssh/known_hosts
|
||||
chmod 644 ~/.ssh/known_hosts
|
||||
else
|
||||
# Symlink to the host’s deploy key (already readable by the runner)
|
||||
ln -sf /home/gitea-runner/.ssh/deploy_stellaamor ~/.ssh/id_ed25519
|
||||
echo "StrictHostKeyChecking no" >> ~/.ssh/config
|
||||
fi
|
||||
chmod 600 ~/.ssh/id_ed25519
|
||||
|
||||
|
||||
|
||||
- name: Upload & activate atomically
|
||||
|
||||
Reference in New Issue
Block a user