cnoe-io / idpbuilder

Spin up a complete internal developer platform with only Docker required as a dependency.
https://cloud-native.slack.com/archives/C05TN9WFN5S
Apache License 2.0
149 stars 45 forks source link

Adding nightly builds to idpbuilder #320

Open omrishiv opened 1 week ago

omrishiv commented 1 week ago

Addresses #281

Note: we need to create a repo secret called GH_NIGHTLY_TOKEN that has permissions to commit to idpbuilder and publish packages. This is a GH limitation: https://github.com/orgs/community/discussions/27028#discussioncomment-3254360

At 12 AM PST, a workflow will run that takes the latest main and pushes it as a new nightly tag. It will then delete the last nightly release. The creation of the new tag will trigger the release workflow to run which will create a new release off the nightly tag.

I also had to go fmt the root.go file or the release will fail.

omrishiv commented 1 week ago

Not too sure about using PAT for orgs. Can we use this instead? https://docs.github.com/en/apps/creating-github-apps/authenticating-with-a-github-app/making-authenticated-api-requests-with-a-github-app-in-a-github-actions-workflow

Thanks for setting up the app, we should be using that correctly now