From 2c201e6a700803af82eefa80ad1e99337dd30409 Mon Sep 17 00:00:00 2001 From: Snorre Date: Tue, 1 Apr 2025 14:03:19 +0200 Subject: [PATCH] aughr --- .forgejo/workflows/restart_service.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.forgejo/workflows/restart_service.yml b/.forgejo/workflows/restart_service.yml index d527846..fbaa611 100644 --- a/.forgejo/workflows/restart_service.yml +++ b/.forgejo/workflows/restart_service.yml @@ -7,7 +7,7 @@ on: jobs: restart_service: - runs-on: native + runs-on: docker steps: - name: Checkout code @@ -17,4 +17,5 @@ jobs: env: SSH_PRIVATE_KEY: ${{ secrets.WEBSITE_KEY }} run: | - ssh -i <(echo "$SSH_PRIVATE_KEY") -o StrictHostKeyChecking=no website-host-user@spoodythe.one -t 'systemctl restart website.service' + echo "$SSH_PRIVATE_KEY" > private_key + ssh -i private_key -o StrictHostKeyChecking=no website-host-user@spoodythe.one -t 'systemctl restart website.service'