Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -85,18 +85,18 @@ jobs:
echo "image-tag=ci-${{ matrix.flavor == 'core' && '5' || '4' }}xx-latest:${{ matrix.odoo_serie }}" >> $GITHUB_OUTPUT

- name: Build
uses: docker/build-push-action@v7
uses: docker/bake-action@v7
with:
context: ./build
file: ${{ steps.setup.outputs.Dockerfile }}
build-args: |
VERSION=${{ matrix.odoo_serie }}
build-contexts: |
python=docker-image://${{ steps.setup.outputs.python-from }}
source: ./build
targets: odoo-project-${{ matrix.flavor }}
files: |
compose.yaml
cwd://${{ steps.docker_meta.outputs.bake-file }}
push: false
load: true
tags: ${{ steps.setup.outputs.image-tag }}
labels: ${{ steps.docker_meta.outputs.labels }}
env:
VERSION: ${{ matrix.odoo_serie }}
PYTHON_IMAGE: ${{ steps.setup.outputs.python-from }}

- name: Test
run: |
Expand Down
36 changes: 36 additions & 0 deletions common/compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# To use with `docker buildx bake`
services:

odoo-project-main:
image: odoo:${VERSION}
build: &build-main
dockerfile: ./Dockerfile
additional_contexts:
- python=docker-image://${PYTHON_IMAGE}
args:
VERSION: ${VERSION}
x-bake:
tags:
- ci-4xx-latest:${VERSION}

odoo-project-core:
image: odoo:${VERSION}-core
build:
<<: *build-main
dockerfile: ./core.Dockerfile
x-bake:
tags:
- ci-5xx-latest:${VERSION}

odoo-project-batteries:
image: odoo:${VERSION}-batteries
build:
<<: *build-main
dockerfile: ./batteries.Dockerfile
additional_contexts:
- odoo=docker-image://odoo:${VERSION}
x-bake:
tags:
- ci-4xx-batteries-latest:${VERSION}
depends_on:
- odoo-project-main
Loading