diff --git a/deploy/docker/Dockerfile.cli-macos b/deploy/docker/Dockerfile.cli-macos index c495d533..93c5fc71 100644 --- a/deploy/docker/Dockerfile.cli-macos +++ b/deploy/docker/Dockerfile.cli-macos @@ -103,9 +103,10 @@ RUN touch crates/openshell-cli/src/main.rs \ crates/openshell-core/build.rs \ proto/*.proto -# Declare version ARG here (not earlier) so the git-hash-bearing value does not +# Declare version ARGs here (not earlier) so the git-hash-bearing values do not # invalidate the expensive dependency-build layers above on every commit. ARG OPENSHELL_CARGO_VERSION +ARG OPENSHELL_IMAGE_TAG RUN --mount=type=cache,id=cargo-registry-cli-macos,sharing=locked,target=/root/.cargo/registry \ --mount=type=cache,id=cargo-git-cli-macos,sharing=locked,target=/root/.cargo/git \ --mount=type=cache,id=cargo-target-cli-macos-${CARGO_TARGET_CACHE_SCOPE},sharing=locked,target=/build/target \ diff --git a/deploy/docker/Dockerfile.python-wheels b/deploy/docker/Dockerfile.python-wheels index be0c62af..000150dd 100644 --- a/deploy/docker/Dockerfile.python-wheels +++ b/deploy/docker/Dockerfile.python-wheels @@ -84,9 +84,10 @@ RUN touch crates/openshell-cli/src/main.rs \ crates/openshell-core/build.rs \ proto/*.proto -# Declare version ARG here (not earlier) so the git-hash-bearing value does not +# Declare version ARGs here (not earlier) so the git-hash-bearing values do not # invalidate the expensive dependency-build layers above on every commit. ARG OPENSHELL_CARGO_VERSION +ARG OPENSHELL_IMAGE_TAG RUN --mount=type=cache,id=cargo-registry-python-wheels-${TARGETARCH},sharing=locked,target=/root/.cargo/registry \ --mount=type=cache,id=cargo-git-python-wheels-${TARGETARCH},sharing=locked,target=/root/.cargo/git \ --mount=type=cache,id=cargo-target-python-wheels-${TARGETARCH}-${CARGO_TARGET_CACHE_SCOPE},sharing=locked,target=/build/target \ diff --git a/deploy/docker/Dockerfile.python-wheels-macos b/deploy/docker/Dockerfile.python-wheels-macos index d8885f97..0bf02a49 100644 --- a/deploy/docker/Dockerfile.python-wheels-macos +++ b/deploy/docker/Dockerfile.python-wheels-macos @@ -91,9 +91,10 @@ RUN touch crates/openshell-cli/src/main.rs \ crates/openshell-core/build.rs \ proto/*.proto -# Declare version ARG here (not earlier) so the git-hash-bearing value does not +# Declare version ARGs here (not earlier) so the git-hash-bearing values do not # invalidate the expensive dependency-build layers above on every commit. ARG OPENSHELL_CARGO_VERSION +ARG OPENSHELL_IMAGE_TAG RUN --mount=type=cache,id=cargo-registry-python-wheels-macos-${TARGETARCH},sharing=locked,target=/root/.cargo/registry \ --mount=type=cache,id=cargo-git-python-wheels-macos-${TARGETARCH},sharing=locked,target=/root/.cargo/git \ --mount=type=cache,id=cargo-target-python-wheels-macos-${TARGETARCH}-${CARGO_TARGET_CACHE_SCOPE},sharing=locked,target=/build/target \