diff --git a/.github/workflows/check-docker.yaml b/.github/workflows/check-docker.yaml new file mode 100644 index 0000000..72a4b17 --- /dev/null +++ b/.github/workflows/check-docker.yaml @@ -0,0 +1,39 @@ +name: check-docker + +on: + pull_request: + branches: + - "master" + push: + branches: + - "master" + +jobs: + build: + strategy: + matrix: + odoo-version: [ + "10.0", + "11.0", + "12.0", + "13.0", + "14.0", + "15.0", + "16.0", + "17.0", + ] + + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + - name: Build image + uses: docker/build-push-action@v5 + with: + context: ./${{ odoo-version }}/ + file: ./${{ odoo-version }}/Dockerfile + push: false + load: true + tags: my/odoo:${{ odoo-version }}