attempt to fix current hash check in build

This commit is contained in:
Ronald A. Richardson
2025-05-20 10:16:43 +08:00
parent c59f028755
commit bfae04a645

View File

@@ -98,7 +98,9 @@ RUN export FLEETBASE_INSTANCE_ID=$(cat /fleetbase/api/.fleetbase-id) && \
echo "FLEETBASE_INSTANCE_ID=$FLEETBASE_INSTANCE_ID" >> /etc/environment echo "FLEETBASE_INSTANCE_ID=$FLEETBASE_INSTANCE_ID" >> /etc/environment
# Track commit hash # Track commit hash
COPY .git /fleetbase/.git
RUN git rev-parse HEAD > /fleetbase/CURRENT_HASH RUN git rev-parse HEAD > /fleetbase/CURRENT_HASH
RUN rm -rf .git
# Set working directory # Set working directory
WORKDIR /fleetbase/api WORKDIR /fleetbase/api