configure ssh

This commit is contained in:
2026-06-08 19:45:31 +02:00
parent 85c5c59eae
commit 59d139537c
+12 -1
View File
@@ -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 }}