-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
hasura migrate commands not working with GitHub Actions #3638
Comments
After doing some more brute forcing, to find the root cause of the problem, I think I've finally found a lead. I ran pg_dump just to see what's in each database and found a discrepancy. This is the command I used: The actual full command, as seen in the repo is: Here is the pg_dump I get from GitHub Actions:
This is where it gets even more interesting, the pg_dump on my local machine:
That's not even the full output pasted. For some reason, the pg_dump in the GitHub Actions machine doesn't contain all the SQL stuff I'd assume that would make Hasura work. And this is with all an "empty" Hasura database. Going to I'm not sure what to do past this point, but I'll try to find a way to make the cloud machine start up the same as my local dev environment. Anyone have ideas as to why there is no SQL if this is built on the server? |
Closing this issue as I'm going to combine this issue with a proper one that focuses more on getting Hasura to work with GitHub Actions for a proper DevOps CI/CD pipeline workflow |
Edit: I've added a test repo that anyone can clone and try it out for themselves: https://github.com/joshuarobs/making-hasura-work-with-github-actions
Simply just clone it, push something to master and watch the magic "happen" (hint: it doesn't)
Here's a link to the latest build run log which failed: https://github.com/joshuarobs/making-hasura-work-with-github-actions/runs/375147959
This is my
.github/workflows/nodejs.yml
file:When it gets to the
hasura migrate status --skip-update-check --endpoint http://localhost:8080
it fails, giving me this error:If I try to run
hasura migrate status --skip-update-check --endpoint http://localhost:8080
locally on my machine, it works fine. But when I try to do it with GitHub Actions, it fails.So...
I've added a test repo that anyone can clone and try it out for themselves: https://github.com/joshuarobs/making-hasura-work-with-github-actions
Simply just clone it, push something to master and watch the magic "happen" (hint: it doesn't)
Here's a link to the latest build run log which failed: https://github.com/joshuarobs/making-hasura-work-with-github-actions/runs/375147959
The text was updated successfully, but these errors were encountered: