39 lines
No EOL
891 B
Markdown
39 lines
No EOL
891 B
Markdown
# Forgejo Secrets Checklist
|
|
|
|
Repository: **YOUR_REPO_NAME**
|
|
|
|
Go to: Forgejo → Repository → Settings → Actions → Secrets
|
|
|
|
## Required Secrets
|
|
|
|
| Secret Name | Value | Status |
|
|
|-------------|-------|--------|
|
|
| `DEPLOY_HOST` | `192.168.1.43` | ☐ |
|
|
| `DEPLOY_USER` | `deploy` | ☐ |
|
|
| `DEPLOY_SSH_KEY` | SSH private key (ED25519) | ☐ |
|
|
|
|
## Verify Secrets
|
|
|
|
These secrets should already exist from previous deployments. Verify they are configured:
|
|
|
|
```bash
|
|
# Test SSH connection
|
|
ssh deploy@192.168.1.43 "echo Connection successful"
|
|
```
|
|
|
|
## If Secrets Missing
|
|
|
|
Generate SSH key pair:
|
|
```bash
|
|
ssh-keygen -t ed25519 -C "deploy@forgejo-ci"
|
|
```
|
|
|
|
Add public key to server:
|
|
```bash
|
|
ssh-copy-id -i ~/.ssh/id_ed25519.pub deploy@192.168.1.43
|
|
```
|
|
|
|
Add private key to Forgejo secrets:
|
|
```bash
|
|
cat ~/.ssh/id_ed25519
|
|
# Copy output and paste in Forgejo secret |