ksctl / cli

Cloud Agnostic Kubernetes Management (CLI)
https://docs.ksctl.com
Apache License 2.0
4 stars 0 forks source link

feature(CI): Chocolatey/Winget based Package distribution #7

Open dipankardas011 opened 8 months ago

dipankardas011 commented 8 months ago

Why do we need it?

The purpose of this enhancement is to create a Chocolatey package for the ksctl CLI tool. Currently, there is no Chocolatey package available for easy installation and management of ksctl. By creating a Chocolatey package, we can provide a convenient way for users to install and update ksctl on Windows systems using the Chocolatey package manager.

What it will bring?

Creating a Chocolatey package for ksctl will bring the following benefits:

  1. Simplified installation: Users will be able to install ksctl with a single command using Chocolatey, eliminating the need for manual downloads and configurations.
  2. Easy updates: With the Chocolatey package, users can easily update ksctl to the latest version by running a simple command, ensuring they have access to the latest features and bug fixes.
  3. Consistency: A Chocolatey package will provide a standardized installation method across Windows systems, ensuring that users have a consistent experience when installing ksctl.
  4. Integration with existing workflows: Many users already utilize Chocolatey for managing software packages on their Windows machines. By offering a Chocolatey package, ksctl can integrate seamlessly into their existing workflows and package management systems.

Current Progress:

  1. Created pkg folder.
  2. Inside the pkg folder, created the choco folder.
  3. Inside the choco folder, created the chocolateyinstall.ps1 script.
  4. Created the ksctl.nuspec file.

Challenges Faced: At this stage, I encountered the following challenge:

I need to provide the URL for the build release of the ksctl .exe file to include in the Chocolatey package. Currently, I don't have the .exe file, as it needs to be downloaded during the package installation from the internet.

Required Guidance: I am seeking guidance on the following steps to proceed:

  1. Building the ksctl CLI binary and generating the .exe file.
  2. Publishing the ksctl CLI binary as a release and obtaining the download URL.
  3. Updating the chocolateyinstall.ps1 script with the correct URL for the ksctl binary.
  4. Any additional steps required to successfully create the Chocolatey package.

chocolateyinstall.ps1

image

ksctl.nuspec

image
github-actions[bot] commented 6 months ago

Stale issue message

github-actions[bot] commented 4 months ago

Stale issue message

dipankardas011 commented 4 months ago

Keep it open

github-actions[bot] commented 2 months ago

Stale issue message

dipankardas011 commented 1 month ago

GoReleaser + Wget ❤️

https://goreleaser.com/customization/homebrew/