Skip to content

Commit

Permalink
ci: use default builder for docker-compose
Browse files Browse the repository at this point in the history
Otherwise the docker compose does not seem to have
access to the locallly loaded image from the build step.
  • Loading branch information
sbidoul committed Sep 19, 2024
1 parent 66b1d39 commit 1957cdd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ jobs:
ODOOVERSION: "${{ matrix.ODOOVERSION }}"
PYTHONTAG: "${{ matrix.PYTHONTAG }}"
DISTRO: "${{ matrix.DISTRO }}"
BUILDER: "default"
run: pytest -v tests
- name: Login to ghcr.io
uses: docker/login-action@v3
Expand Down
2 changes: 2 additions & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ def compose_build():
cmd.extend(["--build-arg", f"PYTHONTAG={os.environ['PYTHONTAG']}"])
if "DISTRO" in os.environ:
cmd.extend(["--build-arg", f"DISTRO={os.environ['DISTRO']}"])
if "BUILDER" in os.environ:
cmd.extend(["--builder", os.environ["BUILDER"]])
subprocess.run(cmd, check=True, cwd=HERE)


Expand Down

0 comments on commit 1957cdd

Please sign in to comment.