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

Merge Debian and Docker version code #35

Merged
merged 4 commits into from
Mar 6, 2025

Conversation

chilagrow
Copy link
Member

@chilagrow chilagrow self-assigned this Mar 5, 2025
@chilagrow chilagrow marked this pull request as ready for review March 5, 2025 03:12
@chilagrow chilagrow requested a review from AlekSi as a code owner March 5, 2025 03:12
@chilagrow chilagrow enabled auto-merge (squash) March 5, 2025 03:13
@chilagrow chilagrow requested review from a team and noisersup March 5, 2025 07:46
@AlekSi AlekSi changed the title Merge debian and docker version code Merge Debian and Docker version code Mar 5, 2025
@AlekSi AlekSi requested a review from Copilot March 5, 2025 07:51

Choose a reason for hiding this comment

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

PR Overview

This PR merges the Debian and Docker version generation code by introducing a unified "versions" type to consolidate logic for extracting Debian package versions and Docker image tags based on GitHub Actions environment variables.

  • Introduces a new "versions" struct replacing the older images struct and associated functions.
  • Refactors the version extraction functions for pull requests, branches, and tags while updating the related tests.
  • Removes obsolete Docker-specific and Debian version functions to simplify the codebase.

Reviewed Changes

File Description
ferretdb_packaging/defineversion/main.go Consolidates version extraction into a unified "versions" type and refactors control flow.
ferretdb_packaging/defineversion/main_test.go Updates tests to validate the new "versions" struct output.
ferretdb_packaging/defineversion/docker_test.go Removes previously redundant Docker version tests.
ferretdb_packaging/defineversion/docker.go Removes deprecated functions and commented code; only retains dockerImageURL.
ferretdb_packaging/defineversion/debian.go Removes obsolete Debian version helper functions.

Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.

@AlekSi AlekSi added not ready Issues that are not ready to be worked on; PRs that should skip CI packages PRs that should build packages trust PRs that can access Actions secrets and removed not ready Issues that are not ready to be worked on; PRs that should skip CI labels Mar 6, 2025
@chilagrow chilagrow merged commit 8366073 into FerretDB:ferretdb Mar 6, 2025
24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
packages PRs that should build packages trust PRs that can access Actions secrets
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Build DocumentDB Docker images in the documentdb repo
3 participants