Skip to content
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

feat: finish init command #34

Closed
gerblesh opened this issue Jan 29, 2024 · 2 comments · Fixed by #85
Closed

feat: finish init command #34

gerblesh opened this issue Jan 29, 2024 · 2 comments · Fixed by #85
Assignees
Labels
state: in-progress Work has started type: feature Brand new functionality, features, pages, workflows, endpoints, etc.
Milestone

Comments

@gerblesh
Copy link
Contributor

the init command would allow users to easily create images with the CLI. Running bb init <image name> would create a new image by cloning down https://github.com/blue-build/template into the specified directory and setting things up such as cosign key pairs, GH secrets (if the user authorizes it), possibly an image base, and whatever else that might be needed

@xynydev
Copy link
Member

xynydev commented Feb 10, 2024

I've updated https://github.com/xynydev/create-ublue-image to serve this purpose, but that tool will ultimately be replaced by bluebuild init, and as such I'm not going to document the existence of the older tool on the new website. This feature shouldn't be hard to implement and having it done soon would be great!

@xynydev
Copy link
Member

xynydev commented Feb 18, 2024

Ok, I tried to do some local development on this, but unfortunately got frustrated.

I've got some ideas for how this could work, though:

  1. Ask some questions to get started
    • Maybe a "yes, I want to do initial image customization now" and "no, I want to go with the defaults for now"
    • After that, same stuff as the website: image name, description, maybe base image too
  2. Create the repo
    • Either by generating it using GitHub API like the website does or git cloning it and changing the remotes like create-ublue-image. I would prefer the GitHub API way, but maybe that should be made optional incase someone wants local only.
  3. Set up signing
    • Might not be required with OIDC
  4. Apply initial customization
    • Based on questions asked
    • Committed to the git repo with chore(automatic):
  5. Supply actionable next steps
    • Local building (link to guide on website), enabling builds on GitHub, rebasing, etc.

@gmpinder gmpinder self-assigned this Feb 25, 2024
@gmpinder gmpinder linked a pull request Feb 25, 2024 that will close this issue
5 tasks
@gmpinder gmpinder added the type: feature Brand new functionality, features, pages, workflows, endpoints, etc. label Feb 27, 2024
@xynydev xynydev added the state: in-progress Work has started label Mar 8, 2024
@gmpinder gmpinder added this to the v0.9.0 milestone Mar 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
state: in-progress Work has started type: feature Brand new functionality, features, pages, workflows, endpoints, etc.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants