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

Add Cyclops CLI to Homebrew #192

Open
petar-cvit opened this issue Apr 6, 2024 · 12 comments
Open

Add Cyclops CLI to Homebrew #192

petar-cvit opened this issue Apr 6, 2024 · 12 comments
Assignees
Labels
cyctl Issues related to the CLI

Comments

@petar-cvit
Copy link
Collaborator

Setup the installation of Cyclops CLI and make it available using Homebrew

@SpiffyEight77
Copy link
Contributor

@petar-cvit
Sorry to bother you at this moment. 🙇🏻‍♂️

It seems that this task hasn't started yet.

I have experience with creating homebrew formulas and am interested in this task.

Would you mind assigning it to me?

@petar-cvit
Copy link
Collaborator Author

Hey @SpiffyEight77, sure thing. Could you list the steps you will take to add cyctl to brew? I never added anything there so I'm curious if we need to add anything to our repo as well

@petar-cvit petar-cvit added the cyctl Issues related to the CLI label May 21, 2024
@SpiffyEight77
Copy link
Contributor

@petar-cvit
Thank you for your quick response.

  • I will build multiple architectures for the binary locally.
  • Check if adding a makefile could simplify the build process.
    • Release the new version of Cyclops.
  • Create the cyctl.rb file to facilitate building the Homebrew formula.
class Cyctl < Formula
  desc "customizable UI for Kubernetes workloads "
  homepage "https://cyclops-ui.com/"
  url "https://github.com/cyclops-ui/cyclops.git",
    tag:      "v0.5.0",
    revision: "3a5ad6428f51a9f506c7b1d62bee482789e91ad8"
  license "Apache-2.0"
  head "https://github.com/cyclops-ui/cyclops.git", branch: "main"

  depends_on "go" => :build
  depends_on "make" => :build

  def install
    system "make", "build"

    bin.install "bin/cyctl"

    generate_completions_from_executable(bin/"cyctl", "completion")
  end

  test do
    assert_match "Cyclops gives you a UI containing fields you define yourself to manage your K8s workloads.",
                  shell_output("#{bin}/cyctl -h")
  end
end

@petar-cvit
Copy link
Collaborator Author

Can we make a GH action or add goreleaser to our repo to build new versions automatically? It would be great if you could set that up too

@SpiffyEight77
Copy link
Contributor

Of course, I would be happy to do these tasks. 🙇🏻‍♂️

@petar-cvit
Copy link
Collaborator Author

Great! Assigning this to you. Let us know if you need any guidance

@SpiffyEight77
Copy link
Contributor

Thank you so much.🙇🏻‍♂️

@petar-cvit
Copy link
Collaborator Author

Hey @SpiffyEight77, I just wanted to check in on the issue and see if you need any help

@SpiffyEight77
Copy link
Contributor

@petar-cvit
Thank you for your message. I'm a bit confused about a small issue.

How do we determine the version of cyctl?
It seems that hardcoding for it now, if I use GHA to release the new version, for example should I release as 0.2.x dynamically?

@petar-cvit
Copy link
Collaborator Author

The plan is it to build and release a new version of cyctl on each new release/tag on the GH repo. So the current version of cyctl would be v0.5.0

We would remove the v0.2.0 from the code of course

@SpiffyEight77
Copy link
Contributor

@petar-cvit
Thank you for your quick response to clear up my confusion.
I will submit the PR as soon as possible this weekend. 🙇🏻‍♂️

@petar-cvit
Copy link
Collaborator Author

Thanks @SpiffyEight77, let me know if you will have any questions or if there is something we can help with

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cyctl Issues related to the CLI
Projects
Status: Backlog
Development

No branches or pull requests

2 participants