Skip to content

Commit

Permalink
Dump cache
Browse files Browse the repository at this point in the history
  • Loading branch information
squeaky-pl committed Feb 26, 2024
1 parent 8b6be7a commit c5ad62e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/workflows/build-and-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,9 @@ jobs:
cache-from: type=gha
cache-to: type=gha,mode=max

- name: Dump cache
run: docker system df -v --format '{{ .BuildCache | json }}' | jq '.[] | select((.CacheType=="exec.cachemount") and (.Description | contains("pip install")))'

- name: Run tests
if: ${{ matrix.run_tests }}
run: |
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ RUN mkdir /etc/inboxapp && \

WORKDIR /opt/app
COPY --chown=sync-engine:sync-engine requirements/ /opt/app/requirements
RUN --mount=type=cache,target=/root/.cache/pip,id=sync-engine-pip-cache \
RUN --mount=type=cache,target=/root/.cache/pip \
python3 -m pip install pip==23.3.1 virtualenv==20.17.1 && \
python3 -m virtualenv /opt/venv && \
/opt/venv/bin/python3 -m pip install setuptools==67.4.0 && \
Expand Down

0 comments on commit c5ad62e

Please sign in to comment.