Skip to content

Conversation

@abhijat
Copy link
Contributor

@abhijat abhijat commented Oct 16, 2025

Adds scripts and action to generate OS specific packaging for debian and redhat based linux distros (deb and rpm files).

Both repositories are available at https://packages.dragonflydb.io/

The steps in the github action are:

  • download latest 5 RPM packages and latest one deb package
  • sign RPM files using GPG key
  • create YUM repository metadata and sign it using GPG key
  • create apt repository and sign with same key
  • copy the repository contents, metadata and public key to static site

The workflow is currently triggered manually, in a follow up PR it can be triggered on a new release.

@abhijat abhijat force-pushed the abhijat/feat/os-package-repo branch from 345a8e7 to 908c864 Compare October 16, 2025 11:02
@abhijat abhijat force-pushed the abhijat/feat/os-package-repo branch 6 times, most recently from 3ec5052 to 55f874d Compare November 10, 2025 05:47
@abhijat

This comment was marked as resolved.

@abhijat abhijat force-pushed the abhijat/feat/os-package-repo branch from 37a60f7 to 248307d Compare November 12, 2025 04:22
@abhijat abhijat changed the title [WIP] tools: Add scripts and supporting files to generate os packge repo tools: Add scripts and supporting files to generate os packge repo Nov 12, 2025
@abhijat abhijat force-pushed the abhijat/feat/os-package-repo branch 2 times, most recently from b321dee to 3caca5d Compare November 12, 2025 05:30
@abhijat abhijat marked this pull request as ready for review November 12, 2025 05:30
@abhijat abhijat force-pushed the abhijat/feat/os-package-repo branch 3 times, most recently from 7862f97 to b223363 Compare November 12, 2025 06:57
@abhijat abhijat force-pushed the abhijat/feat/os-package-repo branch from b223363 to 36b9a26 Compare November 12, 2025 07:39
@abhijat abhijat requested review from Abhra303 and romange November 12, 2025 08:52
Another option would be to use the components feature of apt repositories in the sources file we ask users to install,
but then the versions would need
to be hardcoded in the sources file and the user would have
to update the file with each new release whcih makes for a bad user experience. As of now users wanting older packages
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit (typo)
whcih -> which

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

Comment on lines +80 to +81
gcloud storage rm ${{ secrets.GCP_PACKAGES_BUCKET }}/**
gcloud storage rsync $SiteRoot ${{ secrets.GCP_PACKAGES_BUCKET }} --recursive --delete-unmatched-destination-objects
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see the fail states processing. As far as I understand, we can reach this step even if we have a broken package. I think we have to go to the next step only if the previous one succeeded.
Could you please test it? Try to break one of the previous steps.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you mean if a previous step fails, deploy should fail, right?

If any step fails then the job will fail and the next steps will not be tried, this has also happened during the development of this PR many times, but I will confirm it.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you mean if a previous step fails, deploy should fail, right?

If any step fails then the job will fail and the next steps will not be tried, this has also happened during the development of this PR many times, but I will confirm it.

Yes, I want to make sure that we will not deploy a broken package if something went wrong on one of the previous steps.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@abhijat abhijat force-pushed the abhijat/feat/os-package-repo branch 2 times, most recently from b3d098e to 857f3b0 Compare November 17, 2025 10:16
@vyavdoshenko
Copy link
Contributor

lgtm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants