feat: added s3 deb pipeline

This commit is contained in:
=
2025-04-09 00:22:00 +05:30
parent 33103f1e95
commit d991af557b
5 changed files with 706 additions and 120 deletions
+15
View File
@@ -53,6 +53,21 @@ func CheckForUpdate() {
}
}
func DisplayAptInstallationChangeBanner() {
if runtime.GOOS == "linux" {
_, err := exec.LookPath("apt-get")
isApt := err == nil
if isApt {
yellow := color.New(color.FgYellow).SprintFunc()
msg := fmt.Sprintf("%s",
yellow("Update Required: Your current package installation script is outdated and will no longer receive updates.\nPlease update to the new installation script by running. For more information, visit: https://infisical.com/docs/cli/overview#installation debian section\n"),
)
fmt.Fprintln(os.Stderr, msg)
}
}
}
func getLatestTag(repoOwner string, repoName string) (string, string, error) {
url := fmt.Sprintf("https://api.github.com/repos/%s/%s/releases/latest", repoOwner, repoName)
resp, err := http.Get(url)