fix(ci): reference DEPS_LOCK_ID in RUN to invalidate DinD cache
ARG-only bumps did not invalidate cached empty requirements layers on legacy docker. Echo the lock id in the deps RUN step.
This commit is contained in:
parent
dffa704cd5
commit
96b730653f
2 changed files with 1 additions and 3 deletions
|
|
@ -15,7 +15,7 @@ COPY pyproject.toml ./
|
|||
|
||||
# Bump DEPS_LOCK_ID when dependency wiring changes (busts DinD layer cache).
|
||||
ARG DEPS_LOCK_ID=2
|
||||
RUN python - <<'PY' > /tmp/requirements.txt
|
||||
RUN echo "deps-lock=${DEPS_LOCK_ID}" && python - <<'PY' > /tmp/requirements.txt
|
||||
import sys
|
||||
import tomllib
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue