Files
cv-site/.github/workflows
juanatsap eb920baace fix: resolve SSH key and errcheck linter issues
Deploy workflow fixes:
- Add tr -d '\r' to strip carriage returns from SSH key
- Set chmod 700 on .ssh directory for proper permissions
- Suppress ssh-keyscan stderr output

Handler code fixes:
- Check json.Encode() return values in errors.go (2 locations)
- Check json.Encode() return value in health.go
- Add log import to health.go
- Log encoding errors instead of silently ignoring

Resolves:
- "Load key: error in libcrypto" SSH deployment error
- 3 errcheck linter warnings
2025-10-31 12:23:48 +00:00
..
2025-10-31 11:06:38 +00:00

GitHub Actions Workflows

deploy.yml - Automated Deployment

Trigger: Push to main branch or manual dispatch

What it does:

  1. SSH into your server
  2. git pull origin main
  3. sudo systemctl restart cv-server
  4. Verify deployment via health check

Required GitHub Secrets:

  • SSH_PRIVATE_KEY - SSH private key for server access
  • SSH_HOST - Server IP or domain
  • SSH_USER - SSH username

Optional GitHub Secrets:

  • SSH_PORT (default: 22)
  • SERVICE_NAME (default: cv-server)
  • REPO_PATH (default: /opt/cv-server)

Manual deployment: Go to Actions → Deploy CV Server → Run workflow

Setup guide: See GITHUB-ACTION-SETUP.md