From 7a1d0ac70fbfa024aa627e80a2149d4898e7c8fe Mon Sep 17 00:00:00 2001 From: Crash Date: Thu, 23 Jan 2025 17:55:00 +0100 Subject: [PATCH] feat(ci): Add support for SaunaFS commit hash This commit allows the SaunaFS commit hash to be passed as a build argument. This ensures CI tests reliably use the exact version of the code being tested. Signed-off-by: Crash --- Dockerfile.ci | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Dockerfile.ci b/Dockerfile.ci index 0193089..63550da 100644 --- a/Dockerfile.ci +++ b/Dockerfile.ci @@ -3,10 +3,16 @@ ARG BASE_IMAGE=ubuntu:24.04 ### Test env phase FROM ${BASE_IMAGE} AS test-setup +# Accept build argument for SaunaFS commit hash +ARG SAUNAFS_COMMIT_HASH + ENV LC_ALL="C.UTF-8" ENV GTEST_ROOT=/usr/local ENV DEBIAN_FRONTEND=noninteractive +# Set environment variable for commit hash +ENV SAUNAFS_COMMIT_HASH="${SAUNAFS_COMMIT_HASH}" + RUN --mount=target=/var/lib/apt/lists,type=cache,sharing=locked \ --mount=target=/var/cache/apt,type=cache,sharing=locked \ apt-get update && \