Files
cv-site/.github/workflows
juanatsap b167378526 fix: update workflows for Go 1.25.1 and SSH deployment
Test workflow:
- Upgrade golangci-lint-action from v6 to v7
- v7 is required for golangci-lint v2.x support
- Remove skip-cache as v7 handles caching better

Deploy workflow:
- Fix SSH heredoc to use unquoted ENDSSH delimiter
- Allows environment variables to expand in remote session
- Fixes "Permission denied" by properly passing REPO_PATH and SERVICE_NAME
2025-10-31 12:20:42 +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