From a22c81d7b5307f3ed723dbb9bd58fb168298e298 Mon Sep 17 00:00:00 2001 From: Matthew McKinnon Date: Mon, 28 Oct 2024 22:09:56 +1000 Subject: [PATCH] fix: Deployment SSH keys --- .gitea/workflows/deploy-containers.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.gitea/workflows/deploy-containers.yml b/.gitea/workflows/deploy-containers.yml index 47afc9e..add0cf1 100644 --- a/.gitea/workflows/deploy-containers.yml +++ b/.gitea/workflows/deploy-containers.yml @@ -27,9 +27,8 @@ jobs: - name: Deploy containers run: | mkdir -p ~/.ssh - chmod 700 ~/.ssh echo "${{ secrets.SSH_KNOWN_HOSTS }}" >> ~/.ssh/known_hosts - chmod 600 ~/.ssh/known_hosts + chmod 644 ~/.ssh/known_hosts eval $(ssh-agent -s) ssh-add <(echo "${{ secrets.SSH_PRIVATE_KEY }}") echo "HOST *" > ~/.ssh/config