feat/caching (#5333)
All checks were successful
continuous-integration/drone/push Build is passing

Enable the building and pushing of docker containers on master, and then using them as a cache base in prs.

This should massively reduce the build times, and the load we are placing on other projects servers.

Depends on #5330

Co-authored-by: Darragh Elliott <me@delliott.net>
Reviewed-on: #5333
Co-authored-by: delliott <delliott@fsfe.org>
Co-committed-by: delliott <delliott@fsfe.org>
This commit was merged in pull request #5333.
This commit is contained in:
2025-10-08 13:30:56 +00:00
committed by tobiasd
parent 8f21907db8
commit 072130a077
3 changed files with 75 additions and 5 deletions

View File

@@ -38,11 +38,11 @@ WORKDIR /website-source-during-build
# Copy the pyproject and build deps
# Done in a seperate step for optimal docker caching
COPY ./pyproject.toml ./uv.lock .
COPY ./pyproject.toml ./uv.lock ./
RUN uv sync --no-install-package fsfe_website_build --group dev
# Copy entrypoint
COPY pre-commit.entrypoint.sh .
COPY pre-commit.entrypoint.sh ./
# Set the workdir
WORKDIR /website-source