Skip to content

Commit

Permalink
🚧 Update cache image build in gh workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
yessica-rd committed Sep 28, 2023
1 parent bfee122 commit b7cf507
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions .github/workflows/build-and-run-pytest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,9 @@ jobs:
file: ./docker/Dockerfile
push: false
load: true
tags: claasp-lib
tags: claasp-lib:latest
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max

- name: Move cache
run: |
rm -rf /tmp/.buildx-cache
mv /tmp/.buildx-cache-new /tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache,mode=max

- name: Run pytests
run: docker run --rm -v $PWD:/home/sage/tii-claasp docker.io/library/claasp-lib:latest make remote-pytest
run: docker run --rm -v $PWD:/home/sage/tii-claasp claasp-lib:latest make remote-pytest

0 comments on commit b7cf507

Please sign in to comment.