fix: add --no-cache to docker build to avoid stale layers
This commit is contained in:
@@ -114,12 +114,12 @@ jobs:
|
||||
fi
|
||||
done
|
||||
|
||||
# Build the image
|
||||
# Build the image with --no-cache to ensure fresh build
|
||||
if [ -n "$BUILD_ARGS" ]; then
|
||||
echo "🔧 Building with args: $BUILD_ARGS"
|
||||
docker build $BUILD_ARGS -t "${IMAGE_NAME}:latest" "$IMAGE_PATH"
|
||||
docker build --no-cache $BUILD_ARGS -t "${IMAGE_NAME}:latest" "$IMAGE_PATH"
|
||||
else
|
||||
docker build -t "${IMAGE_NAME}:latest" "$IMAGE_PATH"
|
||||
docker build --no-cache -t "${IMAGE_NAME}:latest" "$IMAGE_PATH"
|
||||
fi
|
||||
|
||||
# Push latest tag
|
||||
|
||||
Reference in New Issue
Block a user