refactor(workflows): use reusable workflows with a single branch#170
Merged
gustavovalverde merged 39 commits intomainfrom Apr 16, 2025
Merged
refactor(workflows): use reusable workflows with a single branch#170gustavovalverde merged 39 commits intomainfrom
gustavovalverde merged 39 commits intomainfrom
Conversation
- Introduced a new GitHub Actions workflow for building, testing, and publishing Odoo images. - Replaced the previous publish.yaml with a more modular approach using image-builder.yaml. - Configured a matrix strategy for multiple Odoo versions and Python variants. - Enhanced permissions and concurrency settings for better workflow management. - Removed the old publish workflow to streamline CI/CD processes.
- Introduced a cron schedule to trigger the build-test-publish workflow every Monday at midnight. - This enhancement allows for regular automated testing and publishing, improving CI/CD reliability.
This was referenced Apr 16, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR introduces a comprehensive GitHub Actions CI/CD pipeline for automating the build, testing, and publishing of Docker images for recent Odoo versions. It also updates the default environment configuration in
.envto align base versions and testing settings.Key Changes
1. CI/CD Pipeline Implementation (
.github/workflows/)build-test-publish.yaml: Main workflow triggered on pushes/PRs tomain. Orchestrates the build, test, and publish stages.image-builder.yaml: Reusable workflow for building and publishing multi-platform Docker images:linux/amd64andlinux/arm64.15.0,16.0,17.0,18.0,master) via matrix strategy.type=gha) for efficiency.mainbranch.docker/metadata-actionfor consistent image tagging.unit-tests.yaml: Reusable workflow (structure added) intended for running Odoo unit tests within the CI environment (currently excludes themasterbranch due to known issues).2. Environment Configuration Update (
.env)3.12(slim-bookworm).14.15.0. (Note: Confirm if this is the desired default for local setups).WKHTMLTOX_VERSIONexplicitly.LOG_LEVELtotest.RUN_TESTSandEXTRA_MODULES, suggesting tests are primarily run via CI rather than by default on local startup.Rationale
amd64andarm64increases the usability of the Docker images across different architectures (e.g., Apple Silicon Macs, ARM servers)..envfile provides a clearer default configuration, potentially geared towards compatibility with CI testing or a specific baseline version.Points for Review
ODOO_VERSIONin.envfrom16.0to15.0.LOG_LEVEL=testand commented-outRUN_TESTS/EXTRA_MODULESalign with the intended default local development experience.