-
Notifications
You must be signed in to change notification settings - Fork 18
Add Fly.io Auto-Deploy Workflows for DOGE-AI (Closes #97) #146
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@silaspath is attempting to deploy a commit to the Saihajpreet Singh's projects Team on Vercel. A member of the Team first needs to authorize it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for spending time on this.
No need for any of the changes in the agent/
, crawler/
dirs.
as for how I think we run this in prod
- update the existing
ci.yaml
and make it depend oncheck
this way we first let CI pass then trigger deploy. We restrict it to justmain
branch. - create a manual trigger which takes in
dir
,branch
orcommit
name https://docs.github.com/en/actions/writing-workflows/choosing-when-your-workflow-runs/events-that-trigger-workflows#workflow_dispatch this can help with hot deploys
(I can take over this PR and adjust it) |
Sounds good! Available if needed. |
This PR addresses issue #97 by setting up GitHub Actions workflows for auto-deploying the two apps in the DOGE-AI monorepo to Fly.io. Below are the changes and instructions for the upstream maintainer to integrate this into the original repo.
Changes
.github/workflows/deploy-agent.yaml
to handle auto-deployment of the "agent" app to Fly.io..github/workflows/deploy-crawler.yaml
to handle auto-deployment of the "crawler" app to Fly.io.fly.toml
files for both apps (apps/agent/fly.toml
andapps/crawler/fly.toml
) to work with my Fly.io account for testing purposes.Notes
fly.toml
files in this PR are specific to my Fly.io environment (app names, etc.). These changes are for demonstration and should not be merged as-is.Setup Instructions for Upstream
Revert or Ignore
fly.toml
Changes:fly.toml
files to their original state (or ignore my changes toapps/agent/fly.toml
andapps/crawler/fly.toml
).flyctl apps create <app-name>
for each.Add GitHub Secrets:
FLY_API_TOKEN_AGENT
: API key for the agent app.FLY_API_TOKEN_CRAWLER
: API key for the crawler app.Update Workflow Triggers:
deploy-agent.yaml
anddeploy-crawler.yaml
, update theon.push.branches
field from my fork’s branch tomain
(or your preferred branch for deployment):Test the Deployment:
Testing
I’ve tested these workflows in my fork, and they successfully deploy to Fly.io using my environment. After following the steps above, they should work for your setup too.
Let me know if you need any clarification or adjustments!