This is an automated email from the ASF dual-hosted git repository.

potiuk pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/main by this push:
     new 71eb9967d86 Bump cache epoch for container images (#55113)
71eb9967d86 is described below

commit 71eb9967d868f63cb603f4c521a7ef759cc734d8
Author: Jarek Potiuk <[email protected]>
AuthorDate: Sun Aug 31 15:20:23 2025 +0200

    Bump cache epoch for container images (#55113)
    
    After switching to Python built from released packages, old uv
    cache should be invalidated, because built packages might point to
    libraries that changed location.
---
 Dockerfile    | 2 +-
 Dockerfile.ci | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/Dockerfile b/Dockerfile
index 62be753cd80..9ab8061593f 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1745,7 +1745,7 @@ COPY --from=scripts install_from_docker_context_files.sh 
install_airflow_when_bu
 # an incorrect architecture.
 ARG TARGETARCH
 # Value to be able to easily change cache id and therefore use a bare new cache
-ARG DEPENDENCY_CACHE_EPOCH="9"
+ARG DEPENDENCY_CACHE_EPOCH="10"
 
 # hadolint ignore=SC2086, SC2010, DL3042
 RUN 
--mount=type=cache,id=prod-$TARGETARCH-$DEPENDENCY_CACHE_EPOCH,target=/tmp/.cache/,uid=${AIRFLOW_UID}
 \
diff --git a/Dockerfile.ci b/Dockerfile.ci
index 560750cadb3..6ae2b7f5eda 100644
--- a/Dockerfile.ci
+++ b/Dockerfile.ci
@@ -1540,7 +1540,7 @@ ENV 
PATH="/usr/python/bin:/root/.local/bin:/root/.cargo/bin:${PATH}"
 # an incorrect architecture.
 ARG TARGETARCH
 # Value to be able to easily change cache id and therefore use a bare new cache
-ARG DEPENDENCY_CACHE_EPOCH="0"
+ARG DEPENDENCY_CACHE_EPOCH="1"
 
 # Install useful command line tools in their own virtualenv so that they do 
not clash with
 # dependencies installed in Airflow also reinstall PIP and UV to make sure 
they are installed

Reply via email to