From 59d139537cc5124c4a97aeb6d8ed4977a14fc44f Mon Sep 17 00:00:00 2001 From: vickydotbat Date: Mon, 8 Jun 2026 19:45:31 +0200 Subject: [PATCH] configure ssh --- .gitea/workflows/release-tool.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/release-tool.yml b/.gitea/workflows/release-tool.yml index 4f51563..804f96f 100644 --- a/.gitea/workflows/release-tool.yml +++ b/.gitea/workflows/release-tool.yml @@ -18,9 +18,20 @@ jobs: set -euo pipefail mkdir -p ~/.ssh chmod 700 ~/.ssh - ssh-keyscan -p 2222 git-ssh.westgate.pw >> ~/.ssh/known_hosts + printf '%s\n' "${{ secrets.GITEA_SSH_KNOWN_HOSTS }}" > ~/.ssh/known_hosts chmod 644 ~/.ssh/known_hosts + - name: Configure SSH + run: | + cat > ~/.ssh/config <<'EOF' + Host git-ssh.westgate.pw + Port 2222 + User git + IdentityFile ~/.ssh/id_ed25519 + IdentitiesOnly yes + EOF + chmod 600 ~/.ssh/config + - name: Sync tools checkout to tag env: TAG_NAME: ${{ github.ref_name }}