Skip to content

Commit dd9f5cd

Browse files
committed
feat: use a unique Dockerfile for all Odoo versions
1 parent 5c16b75 commit dd9f5cd

File tree

15 files changed

+28
-507
lines changed

15 files changed

+28
-507
lines changed

.github/workflows/build.yaml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,16 @@ jobs:
3131
strategy:
3232
matrix:
3333
odoo_serie:
34-
- "14.0"
3534
- "15.0"
3635
- "16.0"
3736
- "17.0"
3837
- "18.0"
3938
- "19.0"
39+
python_from:
40+
- "python:3.12-slim-trixie"
41+
include:
42+
- odoo_serie: "14.0"
43+
python_from: "python:3.9-slim-trixie"
4044

4145
steps:
4246
- uses: actions/checkout@v4
@@ -67,9 +71,13 @@ jobs:
6771
VERSION=${{ matrix.odoo_serie }} SRC=build make setup
6872
6973
- name: Build
70-
uses: docker/build-push-action@v3
74+
uses: docker/build-push-action@v6
7175
with:
7276
context: ./build
77+
build-args: |
78+
VERSION=${{ matrix.odoo_serie }}
79+
build-contexts: |
80+
python=docker-image://${{ matrix.python_from }}
7381
push: false
7482
load: true
7583
tags: ci-5xx-latest:${{ matrix.odoo_serie }}
@@ -101,9 +109,13 @@ jobs:
101109
- name: Tag & Push
102110
if: github.event_name == 'push' || github.event_name == 'schedule'
103111
id: docker_push
104-
uses: docker/build-push-action@v3
112+
uses: docker/build-push-action@v6
105113
with:
106114
context: ./build
115+
build-args: |
116+
VERSION=${{ matrix.odoo_serie }}
117+
build-contexts: |
118+
python=docker-image://${{ matrix.python_from }}
107119
push: ${{ github.event_name != 'pull_request' }}
108120
tags: ${{ steps.docker_meta.outputs.tags }}
109121
labels: ${{ steps.docker_meta.outputs.labels }}

15.0/Dockerfile

Lines changed: 0 additions & 99 deletions
This file was deleted.

15.0/MANIFEST.in

Lines changed: 0 additions & 1 deletion
This file was deleted.

16.0/Dockerfile

Lines changed: 0 additions & 99 deletions
This file was deleted.

16.0/MANIFEST.in

Lines changed: 0 additions & 1 deletion
This file was deleted.

17.0/Dockerfile

Lines changed: 0 additions & 99 deletions
This file was deleted.

17.0/MANIFEST.in

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)