Skip to content

Commit

Permalink
FIXUP: Build the cache if it doesn't exist yet
Browse files Browse the repository at this point in the history
  • Loading branch information
almet committed Sep 30, 2024
1 parent 9077dac commit ed500e1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -245,10 +245,15 @@ jobs:
--version ${{ matrix.version }} \
build-dev --sync
- name: Get current date
id: date
run: echo "::set-output name=date::$(date +'%Y-%m-%d')"

- name: Restore container cache
id: restore-container-cache
uses: actions/cache@v4
with:
key: v2-${{ hashFiles('Dockerfile', 'dangerzone/conversion/common.py', 'dangerzone/conversion/doc_to_pixels.py', 'dangerzone/conversion/pixels_to_pdf.py') }}
key: v2-${{ steps.date.outputs.date }}-${{ hashFiles('Dockerfile', 'dangerzone/conversion/common.py', 'dangerzone/conversion/doc_to_pixels.py', 'dangerzone/conversion/pixels_to_pdf.py', 'poetry.lock', 'gvisor_wrapper/entrypoint.py') }}
path: |-
share/container.tar.gz
share/image-id.txt
Expand Down

0 comments on commit ed500e1

Please sign in to comment.