From 683392b5b1e9a272be886e8c558a73f39865a2e1 Mon Sep 17 00:00:00 2001 From: craisin Date: Wed, 26 Nov 2025 14:44:02 -0800 Subject: [PATCH] ssh fix? --- .gitea/workflows/update.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/update.yml b/.gitea/workflows/update.yml index 1cf616c..d1ee516 100644 --- a/.gitea/workflows/update.yml +++ b/.gitea/workflows/update.yml @@ -8,7 +8,13 @@ jobs: build: runs-on: ubuntu-latest steps: - - run: apt update && apt install sshpass -y + - name: Generate SSH Key + run: | + mkdir -p ~/.ssh/ + echo ${{ $SSH_PRIVATE_KEY }} > private.key + sudo chmod 600 private.key + echo ${{ SSH_KNOWN_HOSTS }} > ~/.ssh/known_hosts + shell: bash - name: Update Compose run: | - ssh craisin@minicraisin touch hello \ No newline at end of file + ssh craisin@minicraisin cd config && git pull && docker compose up -d --remove-orphans \ No newline at end of file