configure ssh
This commit is contained in:
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user