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

dev: upload debs and rpms to Packagecloud #4010

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

scop
Copy link
Contributor

@scop scop commented Aug 12, 2023

Keeping local installs of golangci-lint on Linux systems up to date is a bit of a chore, because building from source is not recommended (so tools like gup won't help), and the binaries are not easily available for automatic installation, need to manually download and install from GH releases.

Since the .deb and .rpm packages are already available, it would be nice to have them in a public repo somewhere. This PR implements uploading them to https://packagecloud.io (I have no affiliation with them).

Demo release and repository created by this PR's content (along with some tweaks to avoid golangci specific things):

To make it work for the golangci/golangci-lint project, the PR requires two things set up by golangci-lint project admins:

  1. A packagecloud.io account. This PR assumes the account name over there will be golangci, and the repo name golangci-lint. If they end up being something else, we can obviously adjust here. But I think they would make sense.
  2. Packagecloud.io API token in the GH golangci-lint project's actions secrets -> repository secrets, as PACKAGECLOUD_TOKEN.

@ldez ldez self-requested a review August 12, 2023 17:22
@ldez ldez added blocked Need's direct action from maintainer area: ci PR that update CI labels Aug 12, 2023
@ldez
Copy link
Member

ldez commented Aug 12, 2023

do you have a paid or trial account?

because API access is a paid feature.

@ldez ldez changed the title ci: upload debs and rpms to Packagecloud dev: upload debs and rpms to Packagecloud Aug 13, 2023
@scop
Copy link
Contributor Author

scop commented Aug 14, 2023

Free account works just fine for this purpose.

@ldez
Copy link
Member

ldez commented Aug 14, 2023

Free account but with a trial.

Can I use packagecloud for free?
Yes, we offer a limited Free Plan and also offer 14 day trials of any of our paid plans.

Screenshot 2023-08-14 at 21-50-38 Pricing Packagecloud

@scop
Copy link
Contributor Author

scop commented Aug 14, 2023

I think that's just misleadingly put. Free with a trial does not make much sense to me in the first place, they say "we offer a limited Free Plan and also offer 14 day trials of any of our paid plans". I've had mine for 2+ months now; it does have a "Free trial" label in the UI, and they've "charged" me $0.00 twice (once each month) for it (no credit card required).

@scop
Copy link
Contributor Author

scop commented Aug 14, 2023

Cloudsmith and Balto have free repo offerings for OSS projects, too, in case Packagecloud does not seem right. I don't have experience with either: https://cloudsmith.com/pricing, https://www.getbalto.com/pricing (scroll down/ search for "Open source" in both).

@scop
Copy link
Contributor Author

scop commented Sep 7, 2023

I've sent mail to support@packagecloud.io, asking them to chime in here to clarify.

@scop
Copy link
Contributor Author

scop commented Sep 10, 2023

Got a response, and a permission to copy it here, so here goes. Note that I'm just relaying their message here, and not taking any responsibility for its content, nor what if anything the golangci-lint project decides to do based on it nor the consequences of those decisions. If further clarifications/discussion is required, I suggest contacting their support directly.

Paula from Packagecloud.io <paula@[redacted-by-scop]> | Fri, 8 Sept, 00:40 (2 days ago)

Hello again Ville!

Thanks for your patience!
When you sign up, you have a 14-day trial on the Pro Plan. Once you hit those 14 days, you'll need to add a payment method to continue on the Pro plan (or switch to a different plan). This is the trial period.

We offer a Free Plan, which is independent of the Trial period. You can check from your Subscription section that you are on a Free Plan, and that one includes 2 GB of storage and 10 GB of bandwith per month.

May I ask for your feedback on the following sentence that we have in our price page? :
"Yes, we offer a limited Free Plan and also offer 14 day trials of any of our paid plans."

Do you think is confusing?

Thanks!

(There was a "We offered a Free Plan" typo in their original which I confirmed with them it was a typo indeed; the corrected/intended form "We offer a Free Plan" is modified by me inline in the above.)

@scop
Copy link
Contributor Author

scop commented Oct 1, 2023

Anything I can do to help with nudging this forward?

If for example Cloudsmith sounds more like it than Packagecloud (their quotas are larger) I could have a look into implementing that. There's a "Contact us for details" button at the end of the page at https://cloudsmith.com/pricing that should probably be followed by a project representative here to clarify the terms first, though. Pushing itself looks trivial: https://help.cloudsmith.io/docs/integrating-with-github-actions#push-debian-package

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: ci PR that update CI blocked Need's direct action from maintainer
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants