Skip to content

Commit

Permalink
gha: use docker layer caching
Browse files Browse the repository at this point in the history
  • Loading branch information
nosahama committed Jan 17, 2025
1 parent 3b059c8 commit 2702714
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,16 @@ jobs:
- run: echo "RUNNER_UID=$(id -u)" >> $GITHUB_ENV
- run: echo "RUNNER_GID=$(id -g)" >> $GITHUB_ENV

- name: Cache docker layers
uses: docker/build-push-action@v4
with:
context: .
cache-to: type=inline
push: false
build-args: KARAPACE_VERSION=${{ env.KARAPACE_VERSION }}
file: container/Dockerfile
platforms: linux/amd64

- run: make unit-tests-in-docker
env:
PYTHON_VERSION: ${{ matrix.python-version }}
Expand Down

0 comments on commit 2702714

Please sign in to comment.