diff --git a/.gitea/workflows/stage-deploy.yaml b/.gitea/workflows/stage-deploy.yaml index 519465eb7..c5202b915 100644 --- a/.gitea/workflows/stage-deploy.yaml +++ b/.gitea/workflows/stage-deploy.yaml @@ -25,8 +25,8 @@ jobs: run: | mkdir -p /root/.ssh/ touch /root/.ssh/config - echo $SSH_KEY > /root/.ssh/id_rsa - chmod 600 /root/.ssh/id_rsa + echo '$SSH_KEY' > /root/.ssh/id_rsa + chmod 700 /root/.ssh/id_rsa cat >> /root/.ssh/config <