diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 946b41e36..007e357a3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -54,20 +54,19 @@ jobs: 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-${{ 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 - - name: Build Dangerzone image - run: |- - if [ -f "share/container.tar.gz" ]; then - echo "Already cached, skipping" - else - sudo apt-get install -y python3-poetry - python3 ./install/common/build-image.py - fi + + - name: Build and push Dangerzone image + if: ${{ steps.restore-container-cache.outputs.cache-hit != 'true' }} + run: | + sudo apt-get install -y python3-poetry + python3 ./install/common/build-image.py windows: runs-on: windows-latest @@ -163,7 +162,7 @@ jobs: run --dev --no-gui ./dangerzone/install/linux/build-deb.py - name: Upload Dangerzone .deb - if: matrix.distro == 'debian' && matrix.version == 'trixie' + if: matrix.distro == 'debian' && matrix.version == 'bookworm' uses: actions/upload-artifact@v4 with: name: dangerzone.deb