Fork the platform repository in your own GitHub organization and clone it locally.
Change the GitHub repository URL in kubernetes/clusters/local/instance.yaml
to point to your forked repository. Commit and push the changes to your fork.
Create a GitHub App in your organization with the following permissions:
- Repository permissions:
- Commit statuses: Read and write
- Contents: Read-only
- Pull requests: Read and write
Install the GitHub App in your organization.
Create the github-app-auth directory and add your GitHub App credentials:
mkdir -p github-app-authCreate github-app-auth/.env with the following content:
GITHUB_APP_ID=<your-app-id>
GITHUB_APP_OWNER=<your-gh-org>Copy your GitHub App private key to github-app-auth/private-key.pem.
You can find the App ID in your GitHub App settings under Settings > Developer settings > GitHub Apps.
The private key can be generated from the same page under Private keys.
Start the dev environment with:
make upAccess the Flux Web UI (runs port-forward, use a separate shell window):
make flux-webAccess the App preview using the PR number (runs port-forward, use a separate shell window):
make preview PR=<number>