Skip to content

Conversation

@moarshy
Copy link
Contributor

@moarshy moarshy commented Feb 23, 2025

Add automated deployment workflow that triggers on push to main or merged PRs.

Changes:

  • Add workflow for EC2 deployment using .pem authentication
  • Add workflow for A100 deployment using SSH keys
  • Add deployment documentation

- Created deploy.yml workflow for deploying application to multiple EC2 instances
- Added deploy-readme.md with comprehensive documentation for deployment process
- Configured workflow to trigger on push or merge to feat/deploy-actions branch
- Implemented multi-instance deployment strategy with SSH-based deployment steps
…ployment

- Update deploy-readme.md with comprehensive server setup and GitHub configuration instructions
- Modify deploy.yml to prepare for main branch deployment
- Simplify health check response in http_server.py
- Created deploy-a100.yml workflow for deploying application to A100 instance
- Configured workflow to trigger on push or merge to feat/deploy-actions branch
- Implemented deployment steps with SSH-based deployment and Docker compose
- Updated health check response in http_server.py
- Include debug echo statements to trace deployment process
- Log current user, directory, and deployment path
- Add directory listing commands for troubleshooting
- Explicitly pass environment variables to SSH command
- Add error handling for unset DEPLOY_PATH
- Simplify deployment path ownership and navigation
- Remove deployment-specific commands for cleaner workflow
…ker commands

- Simplify SSH deployment script to focus on core deployment steps
- Remove debug logging and error handling
- Add direct git fetch, reset, and docker compose build commands
- Integrate docker-ctl and launch.sh for deployment
- Add environment sourcing for conda/miniforge
- Verify Python availability during deployment
- Switch deployment to feat/deploy-actions branch
- Use sudo with preserved environment for launch script
- Improve deployment script robustness
…ecution steps

- Simplify conda/miniforge environment activation
- Add explicit PATH export for miniforge
- Make docker-ctl.sh executable
- Streamline deployment commands
- Remove redundant Python version checks
…ing and deployment steps

- Switch git fetch and reset to main branch
- Add Python version and location checks
- Implement conditional requirements.txt installation
- Preserve Python environment during launch script execution
- Enhance deployment script reliability and logging
- Create new GitHub Actions workflow for EC2 deployment
- Implement matrix strategy to support multiple EC2 instances
- Add dynamic host and SSH key selection based on instance number
- Include deployment steps for fetching, resetting, and launching services
- Enhance deployment status reporting with instance-specific messaging
@moarshy moarshy changed the title Feat/deploy actions feat: Add GitHub Actions deployment workflow for EC2 and A100 instances Feb 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

1 participant