Use deploy SSH key secret #5

Merged
shinuwa merged 1 commit from develop into main 2026-06-12 19:42:47 +00:00
Showing only changes of commit 2cd5b2f078 - Show all commits

View file

@ -9,19 +9,16 @@ jobs:
deploy:
runs-on: docker
container:
image: node:26-bookworm
volumes:
- /data/docker/forgejo-runner/data:/runner-data:ro
steps:
- name: Deploy on WebApps
env:
DEPLOY_SSH_KEY: ${{ secrets.DEPLOY_SSH_KEY }}
run: |
apt-get update
apt-get install -y openssh-client
mkdir -p ~/.ssh
cp /runner-data/forgejo-runner.key ~/.ssh/id_ed25519
printf '%s\n' "$DEPLOY_SSH_KEY" > ~/.ssh/id_ed25519
chmod 600 ~/.ssh/id_ed25519
ssh -o StrictHostKeyChecking=no \