From 98e78cdfe4bb81d35e1822cd74e2f23ded422cc1 Mon Sep 17 00:00:00 2001 From: Yutaka Kondo Date: Wed, 29 May 2024 15:54:36 +0900 Subject: [PATCH] feat(ci): cache ccache by `--mount=type=cache` (#12) * add --mount=type=cache * fix target Signed-off-by: Yutaka Kondo * feat(docker): minimize `base` stage (#16) * install ssh only and copy only once Signed-off-by: Yutaka Kondo * install gosu Signed-off-by: Yutaka Kondo * fix dir Signed-off-by: Yutaka Kondo * revert ansible Signed-off-by: Yutaka Kondo --------- Signed-off-by: Yutaka Kondo --------- Signed-off-by: Yutaka Kondo --- docker/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index c7c08ff06dd..b1374e5fad6 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -88,7 +88,7 @@ RUN --mount=type=ssh \ # Build Autoware COPY --from=src-imported /autoware/src /autoware/src -RUN source /opt/ros/"$ROS_DISTRO"/setup.bash \ +RUN --mount=type=cache,target=/var/tmp/ccache source /opt/ros/"$ROS_DISTRO"/setup.bash \ && colcon build --cmake-args -DCMAKE_BUILD_TYPE=Release --cmake-args \ " -Wno-dev" \ " --no-warn-unused-cli" \