-
Notifications
You must be signed in to change notification settings - Fork 2
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
Refactor/general deploy #58
Refactor/general deploy #58
Conversation
wannacfuture
commented
Dec 5, 2023
- Some fixes for bot deploy
Documentation for App Deploy1.Register your Github App
2. Deploy the app
|
const commitHash = process.env.COMMIT_REF; Have you tried this? First suggestion that ChatGPT gave regarding Netlify. |
This doesn't make sense. There will only be one official deployment. It's obviously not going to have private repository access for everyone in the world. Why bother with this if we should be passing it in from the partner level? You also didn't specify the permissions required. I enabled |
Right, I just thought that we have only one backend for compute delegating and believed we need that PAT token for that backend repo. What about just having only one backend? If each user has their own backend repo, should we include that token to the config? |
I don't see where to do this. Build failed. You did not specify the build settings etc.
|
I need to do more research on this to answer conclusively but it makes a ton of sense to allow users to make their own plugins, which makes sense to load directly from their repositories. Without personal access tokens, there will not be a way to have private repositories/plugins.
What are the benefits of having only one backend other than saving a little work time for this? |
You can do that after you deployed. And regarding build failure
Maybe contributors just need to touch bot repo not configuring config repo maybe...? not so sure about that. |
Current repository Production branch its |
Successfully deployed. |
In app settings page, set your Webhook URL as deployed_url/.netlify/functions/webhooks |
On this page I see |
Thats correct url
Not so sure about that. |
GitHub App permissions. I'm pretty sure this is already implemented or else it wouldn't be able to work with private config repos now.
I'm reviewing the environment variables because Netlify is making me enter them again. Some of them are never referenced in the code. Are you 100% sure they are all necessary? |
For now we are just making API request to the config repo with the token so even the app doesn't have any permission, it will access to the private config repo. Yeap, all of them are needed. |
This seems like a bad approach. We already had it working with the proper configuration (allow access to all the repositories from the app.) |
@wannacfuture update the deploy documentation based on this conversation and 0x4007/ubiquibot-sandbox#1 when I have it working. Add to the README and then I want @whilefoo to try a deployment using these instructions. |
Just updated my PAT cause it has insufficient privileges. It broke here. Made sure to also select "All repositories" |