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"
|
mv "$OUT" "release/${REL}.tar.gz"
|
||||||
|
|
||||||
|
|
||||||
- name: Write SSH key
|
- name: Use host SSH key
|
||||||
run: |
|
run: |
|
||||||
mkdir -p ~/.ssh
|
mkdir -p ~/.ssh
|
||||||
chmod 700 ~/.ssh
|
chmod 700 ~/.ssh
|
||||||
umask 077
|
# Symlink to the host’s deploy key (already readable by the runner)
|
||||||
printf "%s" "${SSH_KEY}" > ~/.ssh/id_ed25519
|
ln -sf /home/gitea-runner/.ssh/deploy_stellaamor ~/.ssh/id_ed25519
|
||||||
|
echo "StrictHostKeyChecking no" >> ~/.ssh/config
|
||||||
chmod 600 ~/.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
|
|
||||||
echo "StrictHostKeyChecking no" >> ~/.ssh/config
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
- name: Upload & activate atomically
|
- name: Upload & activate atomically
|
||||||
|
|||||||
Reference in New Issue
Block a user